jet
jet copied to clipboard
Jet template engine
Support for internationalization can be done by adding a new token type in the lexer, and an evaluator that would call the translator.Translate passed to the template.ExecuteI18n. Also add a...
GitHub is driving me nuts with their PR collaboration between contributors and maintainers. The same thing that happened in #93 now happened in #95 again. SIGH. This is the rebased...
I think most users would benefit from having something like `now()` available, which would expose Go's time.Now(). This would give you immediate access to all the Methods on Go's time.Time...
We are currently evaluating Jet for our projects. One thing that is different from a lot of other template languages (e. g. Handlebars) is how Jet handles expressions that cannot...
Taking in example ``` go RunJetTest(t, data, nil, "actionNode_AddIntString", `{{ 2+"1" }}`, "3") RunJetTest(t, data, nil, "actionNode_AddStringInt", `{{ "1"+2 }}`, "12") ``` The first test the left operand is a...
The engine crashes with the following error: "panic: runtime error: invalid memory address or nil pointer dereference" Reporducer: Main template ``` {{block body()}} {{include "include.jet"}} {{end}} ``` include.jet ``` {{block...
If use 'msg' as template variable name, will appear this error: `unexpected token on operand`
``` html {{msg}}Only text to be translated{{end}} {{trans: "Submit" }} ``` refs #3
This is specifically targeted towards the `strings.Replace` default func that takes an integer as the last argument to indicate the maximum number of replacements that should happen. For one, this...
Cyclic imports add an infinite loop in the latest jet version. Edit: This: ```html {{ import "./test2.html" }} hi {{ import "./test1.html" }} hello ``` Makes jet go into an...