Commit graph

18 commits

Author SHA1 Message Date
Gered 8ff0d555c6 split up deftwigfn so bulk of logic is inside a separate function 2014-03-02 07:51:31 -05:00
Gered b6bffefb1d lots of custom template function related tests 2014-03-01 19:55:02 -05:00
Gered b02142ab47 change visiblity/name of the fn to check if a template fn has been added 2014-03-01 17:58:36 -05:00
Gered 15c230f0ad add functions to allow resetting of the jtwig function repository 2014-03-01 17:49:27 -05:00
Gered b892b82221 move jtwig context related option handling to make-context 2014-03-01 16:48:18 -05:00
Gered 7bb21bbeef add doc comments and minor cleanup 2014-03-01 16:35:30 -05:00
Gered 746cce94f0 pass in our JTwig functions repo object in to all new context objects 2014-03-01 16:13:01 -05:00
Gered 8baf4e6045 add macro for defining custom JTwig functions 2014-03-01 16:12:14 -05:00
Gered ad57995af2 add helper function to check if a twig function has already been defined 2014-03-01 15:37:25 -05:00
Gered a124170760 add shared jtwig function repository object 2014-03-01 15:36:28 -05:00
Gered 9cd705f858 add tests for rendering from a file 2014-03-01 14:43:40 -05:00
Gered a44b176139 add explicit check to see if the template file exists
JTwig does this too, but I would rather the thrown exception be a
FileNotFoundException then a JTwig one
2014-03-01 14:43:11 -05:00
Gered bef3836026 oops, forgot that this was changed back to how it was before 2014-03-01 14:28:34 -05:00
Gered 451e3c739e add support for rendering templates from files 2014-03-01 14:25:01 -05:00
Gered d24ecdca24 add some initial tests 2014-03-01 13:01:34 -05:00
Gered 52ddbefe1d change options parameter 2014-03-01 11:32:14 -05:00
Gered abc0d93722 add simple render function 2014-03-01 10:32:21 -05:00
Gered 45c4417e41 initial commit, complete with "hello world" ... woohoo! 2014-03-01 09:08:20 -05:00