-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am starting to use StringTemplate for the first time, and am stuck trying to figure out how to get StringTemplate to do something like the following:
article.st
$elemenets:article/elements()$
article/elements.st
$if($it.is_type)$ $it:article/type()$
$elseif($it.is_type2)$ $it:article/type2()$
//…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am considering the StringTemplate view engine for my ASP.NET MVC application. This application will be built with one skin, but I then expect many more, often very similar skins to be developed for it. This is primiarly the reason for my choice of StringTemplate as the view engine, as there will…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
For building a document generation engine what would be the primary .NET framework to be used in production. The 2 main ones I see are NVelocity and StringTemplate. NVelocity in all forks to be almost unsupported at this point where as ST been active atleast as of this year.
Are either or both of…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I am using string template to render some content, but the content may be variable so not sure how to pass it in (using .net / c#)
Basic idea is I have a List which need to end up as parameters, e.g.
List<KeyValuePair<string, object>> ret = new List<KeyValuePair<string, object>>();
ret…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
We are using Antlr StringTemplates to give control over how a Entity's Name is output.
The basic Stringtemplate is
$FirstName$ $Initial$ $LastName$,
$Suffix$, $Degree$
I want to add some smarts to that template so that the commas are only output when necessary i.e. The first comma is…
>>> More