Commit graph

59 commits

Author SHA1 Message Date
Gered 6216266abc update project.clj with specifics for the java6 compatible version 2014-03-03 13:47:52 -05:00
Gered 4a2f236876 java6 compatible dependency 2014-03-03 09:38:14 -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
Gered ce93336731 ns comment 2014-03-02 10:17:42 -05:00
Gered 3770f16ebd minor reorganizing 2014-03-02 10:16:57 -05:00
Gered b010bda2d1 add tests for clojure-to-java conversions 2014-03-02 10:14:57 -05:00
Gered 7d4465fe52 add clojure-to-java conversions 2014-03-02 09:59:23 -05:00
Gered 384c3926ee change the method name 2014-03-02 09:26:13 -05:00
Gered b3fb3d6e58 add tests for java-to-clojure conversions 2014-03-02 09:19:23 -05:00
Gered 762bc94046 add java-to-clojure conversions 2014-03-02 09:08:29 -05:00
Gered 4bd38636b5 remove unused require 2014-03-02 07:52:41 -05:00
Gered 8efdee0319 update function tests 2014-03-02 07:52:06 -05:00
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