Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | implement hash args for normal helpers | Jesse Luehrs | 2012-10-08 | 1 | -2/+0 |
| | |||||
* | implement hash parameters for block helpers | Jesse Luehrs | 2012-10-08 | 1 | -5/+5 |
| | |||||
* | change back to defining helpers and functions separately | Jesse Luehrs | 2012-10-05 | 3 | -18/+18 |
| | | | | | | 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 Luehrs | 2012-10-05 | 1 | -2/+0 |
| | |||||
* | hack to make normal helpers work for now | Jesse Luehrs | 2012-10-05 | 1 | -1/+1 |
| | | | | | | | | 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 correctly | Shawn M Moore | 2012-10-05 | 1 | -0/+25 |
| | |||||
* | special case {{{.}}} (not dealing with {{foo . bar}} in general) | Jesse Luehrs | 2012-10-05 | 1 | -2/+0 |
| | |||||
* | implement {{^}} in normal blocks | Jesse Luehrs | 2012-10-05 | 1 | -3/+1 |
| | | | | 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 | -0/+3 |
| | | | | | | | | | 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 names | Jesse Luehrs | 2012-10-05 | 1 | -0/+13 |
| | |||||
* | test for passing context to partials | Jesse Luehrs | 2012-10-05 | 1 | -0/+25 |
| | |||||
* | implement {{^}} as an alias for {{else}} | Jesse Luehrs | 2012-10-05 | 2 | -0/+139 |
| | |||||
* | test empty blocks | Jesse Luehrs | 2012-10-05 | 1 | -0/+9 |
| | |||||
* | make this a todo test | Jesse Luehrs | 2012-10-05 | 1 | -2/+4 |
| | |||||
* | support {{@index}} | Jesse Luehrs | 2012-10-05 | 1 | -0/+14 |
| | |||||
* | Failing test for {{{.}}} | Shawn M Moore | 2012-10-05 | 1 | -0/+9 |
| | |||||
* | support {{this/foo}} | Jesse Luehrs | 2012-10-05 | 1 | -0/+13 |
| | |||||
* | allow - in identifiers | Jesse Luehrs | 2012-10-05 | 1 | -0/+20 |
| | |||||
* | implement else blocks | Jesse Luehrs | 2012-10-05 | 2 | -3/+1 |
| | |||||
* | allow [] for dereferencing with literals | Jesse Luehrs | 2012-10-04 | 1 | -2/+22 |
| | |||||
* | make {{this}} an alias to {{.}} and make them work at the top level | Jesse Luehrs | 2012-10-04 | 2 | -2/+16 |
| | |||||
* | add tests for non-block helpers | Jesse Luehrs | 2012-10-04 | 2 | -0/+193 |
| | |||||
* | implement the built-in block helpers | Jesse Luehrs | 2012-10-04 | 1 | -0/+178 |
| | |||||
* | rename this test | Jesse Luehrs | 2012-10-04 | 1 | -0/+0 |
| | |||||
* | refactor this so that helpers are just normal functions | Jesse Luehrs | 2012-10-04 | 1 | -10/+10 |
| | |||||
* | todo test for array dereferencing | Jesse Luehrs | 2012-10-04 | 1 | -0/+14 |
| | |||||
* | add block helper tests | Jesse Luehrs | 2012-10-04 | 1 | -11/+341 |
| | |||||
* | make lambdas work with field access | Jesse Luehrs | 2012-10-04 | 1 | -0/+15 |
| | |||||
* | implement helpers | Jesse Luehrs | 2012-10-04 | 1 | -3/+1 |
| | |||||
* | make suffixes work for partials | Jesse Luehrs | 2012-10-03 | 1 | -3/+1 |
| | |||||
* | don't cache rendered files in tests | Jesse Luehrs | 2012-10-03 | 1 | -0/+2 |
| | |||||
* | mostly implement partials | Jesse Luehrs | 2012-10-03 | 1 | -3/+4 |
| | | | | just need to get the auto-indenting behavior correct | ||||
* | make section lambdas work | Jesse Luehrs | 2012-10-03 | 2 | -11/+3 |
| | |||||
* | make basic lambdas work (not block lambdas yet) | Jesse Luehrs | 2012-10-03 | 1 | -2/+23 |
| | |||||
* | make this quieter | Jesse Luehrs | 2012-10-03 | 1 | -1/+1 |
| | |||||
* | implement custom delimiters | Jesse Luehrs | 2012-10-03 | 2 | -2/+5 |
| | |||||
* | mark a couple more spec tests that won't pass for now | Jesse Luehrs | 2012-10-03 | 1 | -0/+2 |
| | |||||
* | make comments.json spectest pass | Jesse Luehrs | 2012-10-03 | 1 | -2/+0 |
| | |||||
* | add mustache spec tests - 136/224 passing so far | Jesse Luehrs | 2012-10-02 | 2 | -0/+25 |
| | |||||
* | implement ../ | Jesse Luehrs | 2012-10-02 | 1 | -2/+14 |
| | |||||
* | clean up helpers test | Jesse Luehrs | 2012-10-02 | 1 | -39/+40 |
| | |||||
* | more tests | Jesse Luehrs | 2012-10-02 | 2 | -0/+172 |
| | |||||
* | refactor tests | Jesse Luehrs | 2012-10-02 | 7 | -174/+148 |
| | |||||
* | forgot these files | Jesse Luehrs | 2012-10-02 | 2 | -0/+5 |
| | |||||
* | clean up tests | Jesse Luehrs | 2012-10-02 | 2 | -0/+8 |
| | |||||
* | & for mark_raw | Jesse Luehrs | 2012-10-02 | 1 | -0/+58 |
| | |||||
* | more tests | Jesse Luehrs | 2012-10-02 | 1 | -0/+228 |
| | |||||
* | remove test numbers | Jesse Luehrs | 2012-09-28 | 4 | -0/+0 |
| | |||||
* | get blocks working | Jesse Luehrs | 2012-09-28 | 4 | -5/+69 |
| | |||||
* | basic implementation of raw strings | Jesse Luehrs | 2012-09-27 | 1 | -6/+3 |
| |