@rhinostone/swig 2.0.0-alpha.1 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.changes/v2.0.0-alpha.2.md +4 -0
- package/HISTORY.md +5 -0
- package/ROADMAP.md +6 -2
- package/dist/swig.js +4083 -5134
- package/dist/swig.min.js +80 -7
- package/dist/swig.min.js.map +1 -1
- package/lib/filters.js +3 -4
- package/lib/lexer.js +1 -1
- package/lib/loaders/filesystem.js +3 -5
- package/lib/loaders/index.js +3 -5
- package/lib/loaders/memory.js +4 -6
- package/lib/parser.js +16 -15
- package/lib/swig.js +3 -3
- package/lib/tags/autoescape.js +24 -1
- package/lib/tags/block.js +4 -1
- package/lib/tags/elseif.js +12 -1
- package/lib/tags/extends.js +8 -0
- package/lib/tags/filter.js +68 -9
- package/lib/tags/for.js +26 -28
- package/lib/tags/if.js +43 -4
- package/lib/tags/import.js +23 -3
- package/lib/tags/include.js +69 -9
- package/lib/tags/macro.js +23 -15
- package/lib/tags/parent.js +9 -2
- package/lib/tags/raw.js +12 -1
- package/lib/tags/set.js +58 -3
- package/lib/utils.js +6 -8
- package/package.json +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhinostone/swig",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.2",
|
|
4
4
|
"description": "A simple, powerful, and extendable templating engine for node.js and browsers, similar to Django, Jinja2, and Twig.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"template",
|
|
@@ -26,13 +26,14 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"blanket": "~1.1",
|
|
29
|
-
"
|
|
29
|
+
"esbuild": "^0.28.0",
|
|
30
30
|
"eslint": "^8.57.1",
|
|
31
31
|
"expect.js": "~0.2",
|
|
32
32
|
"express": "~3",
|
|
33
33
|
"lodash": "~1.3.1",
|
|
34
34
|
"mocha": "1.12.0",
|
|
35
35
|
"mocha-phantomjs": "~3.1",
|
|
36
|
+
"path-browserify": "^1.0.1",
|
|
36
37
|
"phantomjs": "~1.9.1",
|
|
37
38
|
"travis-cov": "~0.2"
|
|
38
39
|
},
|