I've just begun using StringTemplate (from stringTemplate.org) and I'd like to know how to achieve grouping in the results.
e.g.
Month , ID
__________________
Jan ,1
Jan ,2
Feb ,3
Feb ,4
Feb ,5
Mar ,6
Mar ,7
Mar ,8
Mar ,9
so that the results when grouped by mon...
Hello everybody,
this question is somewhat related to this question: StackOverflow: Howto load a resource from WEB-INF directory of a web archive
I want to use StringTemplate and want to load my templates via a StringTemplateGroup. Until know I use the method shown in the related question to get single files from the WEB-INF folder, b...
I have a String made up of several Strings seperated by commas. Using StringTemplate, is there an easy way to write a seperate line for each 'value' in this outer String?
For example, I have:
String layers = "ADM,NAV";
and I want to output:
ADM,Y,
NAV,Y,
I suspect the template would look (if it's possible) something like this:
$...
I found one sample in StringTemplate documentation to read *.resx embedded resource, but it is not actually that I expect.
http://www.stringtemplate.org/article/i18n/index.html - there is a sample of making it in Java. Did anybody made it working on C#?
...
I am trying to create a hierarchical document using StringTemplate.
For example, an list of directories :
\alpha
\file1
\file2
\beta
\file3
\gamma
\file4
\file5
\file6
Is this even possible with StringTemplate?
...
The net seems to be full of comparisons between Velocity and FreeMarker, and they seem to be reasonably equivalent. But there seems to be almost no comparisons between StringTemplate and FreeMarker!
So, what are the main differences between StringTemplate and FreeMarker?
My usage for them would be to generate HTML pages only. Out of th...
I am using the .Net port of ANTLR StringTemplate, but have been struggling with doing case insensitive replacements in the template.
I know that StringTemplate doesn't support case-insensitivity out of the box (because of language variation difficulties), but was able to find the following that shows how to implement a CaseInsensitiveSt...
it doesn`t working
web.xml
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/jshop-servlet.xml,
/WEB-INF/applicationContext-security.xml
</param-value>
...