Nils Knappmeier
3fb331ef40
style: reformat all files using prettier
2019-12-03 22:39:17 +01:00
kpdecker
408192ba9f
Add decorator parsing
2015-08-22 10:59:34 -07:00
kpdecker
91ffd32cad
Implement partial blocks
...
This allows for failover for missing partials as well as limited templating ability through the `{{> @partial-block }}` partial special case.
Partial fix for #1018
2015-08-22 10:59:08 -07:00
kpdecker
2571dd8e8e
Improve sanity checks in compiler and visitor
2015-08-22 10:58:44 -07:00
kpdecker
95d84badca
Drop AST constructors in favor of JSON
...
These were little more than object literal statements that were less clear due to their use of index-based arguments.
Fixes #1077
2015-08-18 23:57:27 -07:00
kpdecker
4bed826d0e
Update for let and optional parameters
2015-04-20 02:38:28 -05:00
kpdecker
e3d3eda2e1
Add full support for es6
...
Converts the tool chain to use babel, eslint, and webpack vs. the previous proprietary solutions.
Additionally begins enforcing additional linting concerns as well as updates the code to reflect these rules.
Fixes #855
Fixes #993
2015-04-16 16:43:01 -05:00
kpdecker
c699d0b82f
Remove vestigial code
2015-04-07 23:37:46 -05:00
kpdecker
2d149e7797
Add undefined and null literal support
...
This adds the UndefinedLiteral and NullLiteral to AST.
Fixes #990
2015-04-07 23:37:38 -05:00
kpdecker
884bf15536
Avoid direct references to sexpr in statements
...
This allows us to avoid creating unnecessary AST nodes and avoids things like isHelper.
Side effect of these changes is that @data functions can now have data parameters passed to them.
2015-01-18 17:27:27 -06:00
kpdecker
cb51b82b8e
Add support for dynamic partial names
...
Uses the subexpression syntax to allow for dynamic partial lookups. Ex:
```
{{> (helper) }}
```
Fixes #933
2015-01-18 13:23:45 -06:00
kpdecker
be0ba75925
Fix case-insensitive file system compile issue
2014-12-26 11:34:48 -06:00
kpdecker
9ff3daf785
Add parent tracking and mutation to AST visitors
...
Fixes #916
2014-12-26 11:32:30 -06:00
kpdecker
203df9d5b7
Remove unused vars and add jshint checking
2014-12-16 12:57:46 -06:00
kpdecker
1124908d2a
Update subexpression and hash AST constructs
2014-11-27 08:37:48 -06:00
kpdecker
5c921cafeb
Replace DataNode and IdNode with PathNode
...
This is a breaking change for string mode users as there is no longer a distinct type for data parameters. Instead data consumers should look for the @ prefix value.
2014-11-26 20:36:36 -06:00
kpdecker
697bbe59ca
Update literal ast nodes for new spec
2014-11-26 19:22:09 -06:00
kpdecker
2a4819d75c
Update statement node ASTs
2014-11-26 19:04:18 -06:00
kpdecker
5cfe6a0be1
Update MustacheNode for new AST structure
2014-11-26 09:31:46 -06:00
kpdecker
df421f1e4b
Update ProgramNode to better match SpiderMonkey
2014-11-26 09:18:33 -06:00
kpdecker
a7000f8129
Provide stubbed visitor implementation
...
Part of #889
2014-11-05 21:57:09 -06:00
kpdecker
e676e43dc5
Use proper default vs. module import semantics
2013-10-01 21:19:49 -05:00
Yehuda Katz
12f8299eb2
More modularization
2013-07-02 18:57:28 +00:00
Tommy Messbauer
7963218495
Factory update with tabs to spaces.. sorry :(
2012-11-26 09:39:08 -06:00
Tommy Messbauer
7c4813b417
Commiting initial factory code
2012-08-29 12:48:22 -05:00
kpdecker
4a9270aa38
Fix module loading within node
2011-07-30 12:18:56 -05:00
kpdecker
8c49721c70
Move visitor into compiler subdir
2011-07-30 10:28:31 -05:00