summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* rename a few thingsJesse Luehrs2012-10-052-6/+6
|
* move lambda checking for keys out of the parserJesse Luehrs2012-10-052-43/+64
|
* simplify the parsing logic significanly by redefining expressionJesse Luehrs2012-10-051-50/+25
| | | | | the handlebars language isn't a typical infix-style thing, so it makes sense that expressions will have differerent meanings here
* simplifyJesse Luehrs2012-10-051-8/+12
|
* restructure this to mirror expression() more closelyJesse Luehrs2012-10-051-1/+2
|
* this went away a while agoJesse Luehrs2012-10-051-3/+1
|
* since functions and helpers are different, drop this special caseJesse Luehrs2012-10-052-5/+14
|
* change back to defining helpers and functions separatelyJesse Luehrs2012-10-056-18/+55
| | | | | | helpers are different from functions because they implicitly receive the current context as the first argument, so they need to be declared differently. they work identically to functions in all other respects.
* why was i defining things there?Jesse Luehrs2012-10-052-25/+20
|
* remove debugging codeJesse Luehrs2012-10-051-1/+0
|
* hack to make normal helpers work for nowJesse Luehrs2012-10-052-3/+12
| | | | | | | | thinking about it some more, defining helpers separately from builtin functions is a better idea, because helpers have to automatically receive the context object, which makes them different from normal functions. right now, i'm just special-casing mark_raw to avoid passing the context object to it, but it needs to be more general than that
* Another test for "each" setting up context correctlyShawn M Moore2012-10-051-0/+25
|
* special case {{{.}}} (not dealing with {{foo . bar}} in general)Jesse Luehrs2012-10-052-12/+16
|
* implement {{^}} in normal blocksJesse Luehrs2012-10-053-71/+53
| | | | also, greatly simplify the logic for blocks in general
* actually, @foo just seems to be another kind of variable?Jesse Luehrs2012-10-053-20/+5
| | | | | | | | | really can't tell what the difference is between passing data in as normal template variables and passing them in as "template data" probably just won't support template data until someone can explain this better, because the handlebars test suite isn't very clear on the subject
* partials can use literals for namesJesse Luehrs2012-10-051-0/+13
|
* test for passing context to partialsJesse Luehrs2012-10-051-0/+25
|
* implement {{^}} as an alias for {{else}}Jesse Luehrs2012-10-053-0/+143
|
* test empty blocksJesse Luehrs2012-10-051-0/+9
|
* make this a todo testJesse Luehrs2012-10-051-2/+4
|
* support {{@index}}Jesse Luehrs2012-10-052-7/+48
|
* Failing test for {{{.}}}Shawn M Moore2012-10-051-0/+9
|
* support {{this/foo}}Jesse Luehrs2012-10-052-2/+15
|
* Add an ABSTRACT to silence dzilShawn M Moore2012-10-051-0/+1
|
* allow - in identifiersJesse Luehrs2012-10-052-1/+21
|
* simplifyJesse Luehrs2012-10-051-7/+1
|
* simplifyJesse Luehrs2012-10-051-8/+6
|
* implement else blocksJesse Luehrs2012-10-054-16/+60
|
* simplifyJesse Luehrs2012-10-041-4/+9
|
* allow [] for dereferencing with literalsJesse Luehrs2012-10-042-2/+37
|
* support [] to mean literal stringsJesse Luehrs2012-10-041-2/+47
|
* make {{this}} an alias to {{.}} and make them work at the top levelJesse Luehrs2012-10-044-3/+42
|
* add tests for non-block helpersJesse Luehrs2012-10-042-0/+193
|
* implement the built-in block helpersJesse Luehrs2012-10-042-0/+209
|
* rename this testJesse Luehrs2012-10-041-0/+0
|
* refactor this so that helpers are just normal functionsJesse Luehrs2012-10-043-27/+27
|
* todo test for array dereferencingJesse Luehrs2012-10-041-0/+14
|
* add block helper testsJesse Luehrs2012-10-041-11/+341
|
* standalone lines need to be autochomped in raw_text tooJesse Luehrs2012-10-041-14/+18
|
* better check for matching closing tagsJesse Luehrs2012-10-041-2/+22
|
* remove outdated commentsJesse Luehrs2012-10-041-2/+2
|
* this isn't necessary anymoreJesse Luehrs2012-10-041-1/+0
|
* make this a bit clearerJesse Luehrs2012-10-041-4/+4
|
* make lambdas work with field accessJesse Luehrs2012-10-042-1/+16
|
* implement helpersJesse Luehrs2012-10-043-5/+27
|
* make functions able to take arbitrary argumentsJesse Luehrs2012-10-041-17/+77
|
* handle defaulting to variables more sanelyJesse Luehrs2012-10-041-11/+19
|
* compile {{{...}}} down to {{&...}} instead of {{mark_raw ...}}Jesse Luehrs2012-10-041-1/+1
| | | | shouldn't make a difference, but feels cleaner
* move the extra end tag data to the beginning to make parsing easierJesse Luehrs2012-10-041-13/+15
|
* make XSLATE='dump=proto' work with my custom parserJesse Luehrs2012-10-041-1/+4
|