sauerbraten
sauerbraten
Similarly, Delete seems to "silently" fail when there is leading whitespace: This works: https://play.golang.org/p/Jub6y91ObT0 This doesn't: https://play.golang.org/p/FLM_k3GU6nc
There's a lot in this PR, and I'm not sure if I understand all that's happening, so please someone correct me if I'm wrong: 1. It makes `"1"+2` evaluate to...
> I'm less fond of storing the result of a block in a variable and then pipelining it. Can you elaborate on this? I think it would be very useful...
Okay, I think I didn't do a good job explaining how I would want filters to work. Let me start with example code: ``` {{ set foo }} some lines...
> found a work around; {{ var = value }} seems to declare with global scope That was actually a bug and fixed in https://github.com/CloudyKit/jet/commit/16fe51250caa1c7e875d58b2dcd01e33e85b2e0e, so this won't work as...
It sounds like you could use `extends` for your use case: https://github.com/CloudyKit/jet/blob/master/docs/syntax.md#extends Have a base template defining all the "global" vars you want, then make different "consuming" templates that extend...
Mhmm... not really I'd say. This issue asks to silently ignore undefined variables etc by default (or at least by a configurable flag). Try/catch doesn't do that.
Jet isn't intended to be used with unchecked user input, at least it's definitely not something I would recommend. The Resolve() vs resolve() proposition sounds interesting, even though the code...
Good idea! I agree making it easy enough to make it available yourself is enough. Maybe you haven't seen the new array() and slice() builtins (array is just an alias...
It would be part of the module, but in its own package, so you have to explicitly import it. Then again, most of the functions will be from the standard...