feature: support static filepath resolving by options.dynamicPartials,

fix #51
This commit is contained in:
harttle
2017-12-21 14:09:30 +08:00
parent 4cbfa6d204
commit ace271c7f0
7 changed files with 28 additions and 2 deletions
+2
View File
@@ -86,6 +86,8 @@ Defaults to `["."]`
* `cache` indicates whether or not to cache resolved templates. Defaults to `false`.
* `dynamicPartials`: if set, treat `<filepath>` parameter in `{%include filepath %}`, `{%layout filepath%}` as a variable, otherwise as a literal value. Defaults to `true`.
* `strict_filters` is used to enable strict filter existence. If set to `false`, undefined filters will be rendered as empty string. Otherwise, undefined filters will cause an exception. Defaults to `false`.
* `strict_variables` is used to enable strict variable derivation.