Commit graph

77 commits

Author SHA1 Message Date
Gered f431c88696 update README.md 2014-03-04 19:00:08 -05:00
Gered 17caf40f2a bump version 2014-03-04 16:55:36 -05:00
Gered 8d6eba99b0 update namespace doc comment 2014-03-04 16:46:00 -05:00
Gered d4ec61b306 add more type hints 2014-03-04 16:42:44 -05:00
Gered 3cca389e8b formatting 2014-03-04 14:42:52 -05:00
Gered 0624425e61 add tests for template function aliases 2014-03-04 14:41:46 -05:00
Gered fdcd0d74d3 add alias for "blankIfNull" 2014-03-04 14:37:48 -05:00
Gered 1595d54041 update version 2014-03-04 14:28:39 -05:00
Gered c3d1f15af4 add more standard function tests 2014-03-04 14:27:45 -05:00
Gered 70bc766fa7 move template function tests into a separate namespace. add std fn tests 2014-03-04 14:00:13 -05:00
Gered 559936b839 add no-alias arg overload for add-function!. update some doc comments 2014-03-04 13:59:23 -05:00
Gered a7e6b70ea4 standard function now defined in a map which can be easily reloaded 2014-03-04 13:25:58 -05:00
Gered f71272a8a5 typo 2014-03-04 12:42:38 -05:00
Gered 8041c4cae3 pprint isn't really a 'core' function i guess, so we should have a :use
tests failed to run, complaining about pprint being undefined until this
was added anyway
2014-03-04 12:14:10 -05:00
Gered 880dd02e91 add standard functions (those not already provided by jtwig) 2014-03-04 12:11:53 -05:00
Gered bd6b5962cb add support for template function aliases 2014-03-04 12:10:43 -05:00
Gered f879a59b72 get rid of debug println 2014-03-04 10:54:14 -05:00
Gered 1e46b1f207 allow redefining template functions. wrap exceptions in FunctionException 2014-03-04 10:53:23 -05:00
Gered 6128447121 move code to manage twig template functions into separate namespace 2014-03-04 08:40:26 -05:00
Gered 7532d61008 update to jtwig 2.1.1 2014-03-03 09:38:52 -05:00
Gered c11475d112 change function name 2014-03-02 15:47:50 -05:00
Gered 0bf32bdd67 add comments to document the options. add missing option toggle function 2014-03-02 15:42:00 -05:00
Gered 050cb114f4 rename option keyword 2014-03-02 15:32:17 -05:00
Gered 826fdb3832 implement support for the new :skip-file-modification-check option 2014-03-02 15:30:49 -05:00
Gered aaced50b76 add option to skip file modification date checks if it is cached already 2014-03-02 14:58:22 -05:00
Gered 22ea7b35ab remove debug println 2014-03-02 14:43:15 -05:00
Gered a5878fab54 always clear the cache when toggling it on/off 2014-03-02 14:35:18 -05:00
Gered 428adddb65 update a comment 2014-03-02 14:33:16 -05:00
Gered e1b53036ed add toggle control to turn template caching on/off 2014-03-02 14:28:39 -05:00
Gered c64a826a12 add options atom 2014-03-02 14:28:24 -05:00
Gered 2fd58cb392 add function to reset the compiled template cache 2014-03-02 14:17:43 -05:00
Gered e423a658b3 rename cache related functions to better indicate they have side-effects 2014-03-02 14:14:47 -05:00
Gered 7b949c176f update get-compiled-template to use caching instead of always compiling 2014-03-02 13:54:45 -05:00
Gered d38be15c27 add function to return cached compiled templates or caching a new one 2014-03-02 13:53:38 -05:00
Gered 4fad49fa3f add helper function to test if a file is newer then a given timestamp 2014-03-02 13:52:30 -05:00
Gered 6427dc19bc add helper functions we'll need for file modification date/time testing 2014-03-02 13:52:05 -05:00
Gered 5bf4dcaf98 some type hints 2014-03-02 13:04:44 -05:00
Gered eba793d31e update doc comment for render function to indicate it doesn't use caching 2014-03-02 13:02:04 -05:00
Gered 128a84dfcb update render-* functions to use compiled template objects 2014-03-02 13:00:26 -05:00
Gered 65109bccc5 add helper functions for compiling a template from a string or file 2014-03-02 12:59:27 -05:00
Gered feefe82a30 add get-compiled-template function
eventually this will handle fetching pre-compiled templates out of the
cache, but for now this will help us refactor everything else to use
this instead and work with compiled template objects instead elsewhere
2014-03-02 12:47:49 -05:00
Gered 0ad83ccb51 add compiled templates atom 2014-03-02 12:39:07 -05:00
Gered 0f450b36b3 split up JtwigModelMap creation from JtwigContext creation 2014-03-02 11:14:24 -05:00
Gered cfa047ad18 nitpicky cleanup ftw 2014-03-02 11:13:54 -05:00
Gered ab8c748916 ns comment 2014-03-02 10:48:35 -05:00
Gered 47fb37733b use doall to force full evaluation of java collections when converting 2014-03-02 10:46:25 -05:00
Gered 56d966429d todo comments regarding testing hashmap values 2014-03-02 10:36:20 -05:00
Gered 12d72afa5a update tests 2014-03-02 10:34:29 -05:00
Gered 512fcfa31c perform proper clojure/java conversions on function args / return value 2014-03-02 10:34:16 -05:00
Gered f2a864b2e1 to be consistent, we should be converting keys this way here too 2014-03-02 10:21:11 -05:00