[stringtemplate-interest] Command line app for printing templated text?
Nathan Gagnon
simplyletgo at gmail.com
Thu Dec 8 08:19:55 PST 2011
I found ST Standalone Tool (should have seen it sooner...):
http://www.antlr.org/wiki/display/ST/STST+-+StringTemplate+Standalone+Tool
This will work - looks like (from tool's doc page) I'll have to create
temp files instead of passing arguments in direct, and only keep one
template per .stg, but that should be fine.
I want to try using ST for snippets in VIM...
On Thu, Dec 8, 2011 at 10:35 AM, Nathan Gagnon wrote:
> Does anyone know of a simple command line app that simply prints
> generated text from stringtemplates? Something that takes in the .stg
> file, the name of the target template, and your string arguments for
> it.
>
> Basically what I'm looking for is something I can call like:
>> StringTemplateApp.exe MyTemplates.stg TemplateName "arg1" "arg2" ...
>
> I know the app would be easy to write, but my hunch is that its
> already been done, and I'd like to reuse if possible.
>
> Thanks!
> Nathan
More information about the stringtemplate-interest
mailing list