stick
stick copied to clipboard
A golang port of the Twig templating engine
I'd like to use this format of the set tag, but it doesn't appear to be implemented (results in a parse error) ``` {% set foo %} ... {% endset...
Enable support to copy content that appears within verbatim tag ``` {% verbatim %} Content to be copied without {{parsing}} {% endverbatim %} ```
Auto escaping work fine for top level variables but ignores nested
There are several areas that could use some tweaking with regard to error handling in Stick. This issue will be used to track and explain the reasoning behind these changes....
Just wanted to say thanks for building this lib, I really look forward to seeing it completed! Keep up the great work, sorry I can't contribute. Love twig in PHP...
Many thanks for this great package! I really needed a simple and extensible stand alone template parser like this. I've managed to create additional filters, I liked how easy I...
A template like this: `{{ x is defined ? 1 : 0 }}` results in `parse: expected "PRINT_CLOSE", got "PUNCTUATION"` Similarly, this `{% set y = x is defined ?...
given the following variables: `{"example": ["aaa", "bbb"]}` (json as example) and the following template: `{{example}}` it's showing empty, according to the original php implementation it should return `aaa, bbb`, or...
Not sure I'm actually satisfied with this, so gonna let it hang out in PR form for a bit
Hello. This pull request adds loading of templates from the embed file system. This is very convenient when delivering binaries without docker images. Unfortunately, this change requires an update to...