Skip to content

Commit

Permalink
add conditional template blocks with {% if … %} … {% end %} syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Frame committed Feb 19, 2015
1 parent 260068e commit a576ea1
Show file tree
Hide file tree
Showing 5 changed files with 528 additions and 260 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- [x] expression linting (ensure only valid types are returned)
- [x] fix partial pipelines
- [ ] conditional template blocks
- [x] conditional template blocks
- [x] add source dir, target dir, target basename to default env
- [x] dictionary literal
- [x] indexing syntax
Expand Down
2 changes: 2 additions & 0 deletions lib/ast_types.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ exports.PIPELINE = 10;
exports.PARTIAL_PIPELINE = 11;
exports.STATIC_MEMBER = 12;

exports.TEMPLATE_IF = 13;

//
// Runtime types

Expand Down
Loading

0 comments on commit a576ea1

Please sign in to comment.