Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | simplify the logic for template suffixes | Jesse Luehrs | 2012-10-19 | 1 | -1/+1 |
| | | | | | | | now, anything that doesn't contain a '.' will have the suffix appended unconditionally, rather than looking for both the suffixed and unsuffixed versions. this is more in line with how text::xslate typically works. | ||||
* | pod coverage | Jesse Luehrs | 2012-10-08 | 1 | -0/+27 |
| | |||||
* | remove the abstract here | Jesse Luehrs | 2012-10-08 | 1 | -1/+0 |
| | |||||
* | move more code into the compiler | Jesse Luehrs | 2012-10-08 | 1 | -93/+5 |
| | |||||
* | simplify | Jesse Luehrs | 2012-10-08 | 1 | -10/+10 |
| | |||||
* | move more bits into the compiler | Jesse Luehrs | 2012-10-08 | 1 | -16/+11 |
| | |||||
* | implement hash args for normal helpers | Jesse Luehrs | 2012-10-08 | 1 | -1/+1 |
| | |||||
* | implement hash parameters for block helpers | Jesse Luehrs | 2012-10-08 | 1 | -1/+17 |
| | |||||
* | make block helpers recognizable as helpers | Jesse Luehrs | 2012-10-08 | 1 | -5/+5 |
| | |||||
* | move this earlier | Jesse Luehrs | 2012-10-05 | 1 | -10/+10 |
| | |||||
* | rename a few things | Jesse Luehrs | 2012-10-05 | 1 | -5/+5 |
| | |||||
* | move lambda checking for keys out of the parser | Jesse Luehrs | 2012-10-05 | 1 | -43/+18 |
| | |||||
* | simplify the parsing logic significanly by redefining expression | Jesse Luehrs | 2012-10-05 | 1 | -50/+25 |
| | | | | | the handlebars language isn't a typical infix-style thing, so it makes sense that expressions will have differerent meanings here | ||||
* | simplify | Jesse Luehrs | 2012-10-05 | 1 | -8/+12 |
| | |||||
* | restructure this to mirror expression() more closely | Jesse Luehrs | 2012-10-05 | 1 | -1/+2 |
| | |||||
* | this went away a while ago | Jesse Luehrs | 2012-10-05 | 1 | -3/+1 |
| | |||||
* | since functions and helpers are different, drop this special case | Jesse Luehrs | 2012-10-05 | 1 | -3/+4 |
| | |||||
* | change back to defining helpers and functions separately | Jesse Luehrs | 2012-10-05 | 1 | -0/+17 |
| | | | | | | 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. | ||||
* | remove debugging code | Jesse Luehrs | 2012-10-05 | 1 | -1/+0 |
| | |||||
* | hack to make normal helpers work for now | Jesse Luehrs | 2012-10-05 | 1 | -2/+11 |
| | | | | | | | | 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 | ||||
* | special case {{{.}}} (not dealing with {{foo . bar}} in general) | Jesse Luehrs | 2012-10-05 | 1 | -10/+16 |
| | |||||
* | implement {{^}} in normal blocks | Jesse Luehrs | 2012-10-05 | 1 | -66/+45 |
| | | | | also, greatly simplify the logic for blocks in general | ||||
* | actually, @foo just seems to be another kind of variable? | Jesse Luehrs | 2012-10-05 | 1 | -20/+1 |
| | | | | | | | | | 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 | ||||
* | implement {{^}} as an alias for {{else}} | Jesse Luehrs | 2012-10-05 | 1 | -0/+4 |
| | |||||
* | support {{@index}} | Jesse Luehrs | 2012-10-05 | 1 | -7/+34 |
| | |||||
* | Add an ABSTRACT to silence dzil | Shawn M Moore | 2012-10-05 | 1 | -0/+1 |
| | |||||
* | allow - in identifiers | Jesse Luehrs | 2012-10-05 | 1 | -1/+1 |
| | |||||
* | implement else blocks | Jesse Luehrs | 2012-10-05 | 1 | -8/+49 |
| | |||||
* | simplify | Jesse Luehrs | 2012-10-04 | 1 | -4/+9 |
| | |||||
* | allow [] for dereferencing with literals | Jesse Luehrs | 2012-10-04 | 1 | -0/+15 |
| | |||||
* | support [] to mean literal strings | Jesse Luehrs | 2012-10-04 | 1 | -2/+47 |
| | |||||
* | make {{this}} an alias to {{.}} and make them work at the top level | Jesse Luehrs | 2012-10-04 | 1 | -1/+2 |
| | |||||
* | refactor this so that helpers are just normal functions | Jesse Luehrs | 2012-10-04 | 1 | -4/+8 |
| | |||||
* | standalone lines need to be autochomped in raw_text too | Jesse Luehrs | 2012-10-04 | 1 | -14/+18 |
| | |||||
* | better check for matching closing tags | Jesse Luehrs | 2012-10-04 | 1 | -2/+22 |
| | |||||
* | remove outdated comments | Jesse Luehrs | 2012-10-04 | 1 | -2/+2 |
| | |||||
* | make lambdas work with field access | Jesse Luehrs | 2012-10-04 | 1 | -1/+1 |
| | |||||
* | implement helpers | Jesse Luehrs | 2012-10-04 | 1 | -2/+10 |
| | |||||
* | make functions able to take arbitrary arguments | Jesse Luehrs | 2012-10-04 | 1 | -17/+77 |
| | |||||
* | handle defaulting to variables more sanely | Jesse Luehrs | 2012-10-04 | 1 | -11/+19 |
| | |||||
* | compile {{{...}}} down to {{&...}} instead of {{mark_raw ...}} | Jesse Luehrs | 2012-10-04 | 1 | -1/+1 |
| | | | | shouldn't make a difference, but feels cleaner | ||||
* | move the extra end tag data to the beginning to make parsing easier | Jesse Luehrs | 2012-10-04 | 1 | -13/+15 |
| | |||||
* | make XSLATE='dump=proto' work with my custom parser | Jesse Luehrs | 2012-10-04 | 1 | -1/+4 |
| | |||||
* | remove debugging code | Jesse Luehrs | 2012-10-03 | 1 | -33/+0 |
| | |||||
* | mostly implement partials | Jesse Luehrs | 2012-10-03 | 1 | -2/+28 |
| | | | | just need to get the auto-indenting behavior correct | ||||
* | make section lambdas work | Jesse Luehrs | 2012-10-03 | 1 | -11/+81 |
| | |||||
* | make basic lambdas work (not block lambdas yet) | Jesse Luehrs | 2012-10-03 | 1 | -2/+20 |
| | |||||
* | implement custom delimiters | Jesse Luehrs | 2012-10-03 | 1 | -10/+17 |
| | |||||
* | more cleanups | Jesse Luehrs | 2012-10-03 | 1 | -26/+22 |
| | |||||
* | this is unnecessary now too | Jesse Luehrs | 2012-10-03 | 1 | -2/+0 |
| |