summaryrefslogtreecommitdiffstats
path: root/lib/Text/Xslate
Commit message (Collapse)AuthorAgeFilesLines
* treat '..' like any other name (RT#94792)Jesse Luehrs2014-04-161-0/+1
| | | | | ../../foo should be valid anywhere that baz/bar/foo is valid, so the '..' token should have the same lbp as names
* switch from Any::Moose to MouseFitz Elliott2013-02-281-2/+2
| | | | | Text::Xslate has switched to Mouse, causing this module to stop working when Moose was loaded before it.
* implement passing new context to partialsJesse Luehrs2013-01-021-2/+8
|
* simplify the logic for template suffixesJesse Luehrs2013-01-021-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 coverageJesse Luehrs2012-10-081-0/+27
|
* remove the abstract hereJesse Luehrs2012-10-081-1/+0
|
* move more code into the compilerJesse Luehrs2012-10-081-93/+5
|
* simplifyJesse Luehrs2012-10-081-10/+10
|
* move more bits into the compilerJesse Luehrs2012-10-081-16/+11
|
* implement hash args for normal helpersJesse Luehrs2012-10-081-1/+1
|
* implement hash parameters for block helpersJesse Luehrs2012-10-081-1/+17
|
* make block helpers recognizable as helpersJesse Luehrs2012-10-081-5/+5
|
* move this earlierJesse Luehrs2012-10-051-10/+10
|
* rename a few thingsJesse Luehrs2012-10-051-5/+5
|
* move lambda checking for keys out of the parserJesse Luehrs2012-10-051-43/+18
|
* 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-051-3/+4
|
* change back to defining helpers and functions separatelyJesse Luehrs2012-10-051-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 codeJesse Luehrs2012-10-051-1/+0
|
* hack to make normal helpers work for nowJesse Luehrs2012-10-051-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 Luehrs2012-10-051-10/+16
|
* implement {{^}} in normal blocksJesse Luehrs2012-10-051-66/+45
| | | | also, greatly simplify the logic for blocks in general
* actually, @foo just seems to be another kind of variable?Jesse Luehrs2012-10-051-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 Luehrs2012-10-051-0/+4
|
* support {{@index}}Jesse Luehrs2012-10-051-7/+34
|
* Add an ABSTRACT to silence dzilShawn M Moore2012-10-051-0/+1
|
* allow - in identifiersJesse Luehrs2012-10-051-1/+1
|
* implement else blocksJesse Luehrs2012-10-051-8/+49
|
* simplifyJesse Luehrs2012-10-041-4/+9
|
* allow [] for dereferencing with literalsJesse Luehrs2012-10-041-0/+15
|
* 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-041-1/+2
|
* refactor this so that helpers are just normal functionsJesse Luehrs2012-10-041-4/+8
|
* 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
|
* make lambdas work with field accessJesse Luehrs2012-10-041-1/+1
|
* implement helpersJesse Luehrs2012-10-041-2/+10
|
* 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
|
* remove debugging codeJesse Luehrs2012-10-031-33/+0
|
* mostly implement partialsJesse Luehrs2012-10-031-2/+28
| | | | just need to get the auto-indenting behavior correct
* make section lambdas workJesse Luehrs2012-10-031-11/+81
|
* make basic lambdas work (not block lambdas yet)Jesse Luehrs2012-10-031-2/+20
|