stringtemplate4
stringtemplate4 copied to clipboard
StringTemplate 4
I know that the template definition needs to match the filename but it seems to me that if it doesn't there should be a nicer error that goes through the...
I'm using stringtemplate 4.0.8. I'm having a problem passing a named argument to a template which has been looked up in a dictionary. Here is the offending line of code:...
I searched for "stringtemplate" which gave me org.antlr:stringtemplate, which ends at the deprecated 4.0.2 version (which promptly triggered the "does not recognize the delimiters clause in files' bug and sent...
When cloning a template at least two times, the type of an attribute changes to AttributeList. Below you can find a simple test-case: ``` java ST t1 = new ST("$key$");...
We were having some troubles with attributes that contained foreign characters and I was able to isolate the problem to something within StringTemplate. Here is the failing unit test ```...
Hi, it would be nice to have ability to load/import STGroups from streams. Currently I use it to cache String of template loaded from stream loaded using java.lang.ClassLoader#getResourceAsStream(). I want...
In the documentation https://github.com/antlr/stringtemplate4/blob/master/doc/cheatsheet.md is the following: , , | special character(s): space, newline, tab. Can have multiple in single expression, e.g. . -- | -- I tried to use...
We use string templates for a variety of data exports. One of which is simple CSV. If we have an input from a table of data where as long as...
Hi, I need some custom function which taking parameters and returns a boolean value to simplify some expression conditon in template,does stringtemplate v4 support this? Thanks.
Not sure if that is intended, but the test `testFullyQualifiedTemplateRef2` in `TestTemplateNames.java` prints an error to the console, even though it succeeds. The message is: ``` context [/group/c] 1:1 passed...