Comparing version 1.2.12 to 1.2.13
@@ -180,3 +180,6 @@ "use strict"; | ||
value: function _include(request, locals, pLocals) { | ||
var filename = path.resolve(pLocals.__dirname, request + '.ajs'); | ||
if (!request.endsWith(".ajs")) { | ||
request += ".ajs"; | ||
} | ||
var filename = path.resolve(pLocals.__dirname, request); | ||
var template = null; | ||
@@ -183,0 +186,0 @@ if (filename == this.filename) throw new Error('self include'); |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "1.2.12", | ||
"version": "1.2.13", | ||
"author": "Ionică Bizău <bizauionica@gmail.com> (https://ionicabizau.net)", | ||
@@ -17,0 +17,0 @@ "contributors": [ |
@@ -108,4 +108,2 @@ | ||
## :question: Get Help | ||
@@ -117,3 +115,3 @@ | ||
2. For bug reports and feature requests, open issues. :bug: | ||
3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket: | ||
3. For direct and quick help from me, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket: | ||
@@ -156,4 +154,5 @@ | ||
- [`ajs-xgettext`](https://npmjs.com/package/ajs-xgettext) (by Duane Griffin)—Extract localised text from AJS templates | ||
- [`bloggify-ajs-renderer`](https://github.com/IonicaBizau/bloggify-ajs-renderer#readme)—ajs renderer for Bloggify. | ||
- [`bloggify-ajs-renderer`](https://github.com/Bloggify/ajs-renderer#readme) (by Bloggify)—ajs renderer for Bloggify. | ||
- [`bloggify-icons`](https://github.com/Bloggify/bloggify-icons#readme)—The Bloggify icons for the web. | ||
- [`bloggify-renderer-ajs`](https://github.com/Bloggify/renderer-ajs#readme) (by Bloggify)—ajs renderer for Bloggify. | ||
- [`express-ajs`](https://github.com/IonicaBizau/express-ajs#readme)—Minimal example of how to use ajs in Express. | ||
@@ -160,0 +159,0 @@ - [`git-stats-html`](https://github.com/IonicaBizau/git-stats-html#readme)—Turn git-stats result into HTML output. |
103856
2513
175