[stringtemplate-interest] Interactive StringTemplate sandbox
Michael Bedward
michael.bedward at gmail.com
Sun May 1 21:36:05 PDT 2011
Nice work. The drop-down of examples is a good idea.
The bookstore example didn't render anything when I tried it just now.
Michael
On 2 May 2011 04:07, Nicholas Dunn <i82much at gmail.com> wrote:
> I fixed the newline issue and made the code boxes smaller height by default.
> I also added group support, so as better to illustrate how different
> templates can be applied. The new version is live now:
> http://stringtemplate.appspot.com/
>
> I'm envisioning some sort of tabbed interface or radio buttons to choose
> between some sample string template group / JSON pairs which illustrate many
> of the features of StringTemplate. Right now I have the one example, that
> of building an HTML table dynamically, which illustrates anonymous
> templates, list literal, simple variable substitution, and conditional
> output.
>
>
> On Sun, May 1, 2011 at 2:24 AM, Michael Bedward <michael.bedward at gmail.com>
> wrote:
>>
>> Hi Nicholas,
>>
>> That's a great idea. Apart from fixing the newline problem if
>> possible, my only suggestion would be to have the layout so that both
>> the template code and the JSON layout are visible on an average
>> resolution screen (e.g. 800 px height) without having to scroll up and
>> down.
>>
>> Michael
>>
>> On 1 May 2011 14:08, Nicholas Dunn <i82much at gmail.com> wrote:
>> > Hi all,
>> > I am a huge fan of StringTemplate and evangelize for it all I can. To
>> > that
>> > end, I wrote up a small Google App Engine web app which allows new users
>> > to
>> > experiment with StringTemplate without having to download jars, set up
>> > classpaths, etc. etc. It builds upon John Snyder's StringTemplate
>> > Standalone Tool
>> >
>> > (http://www.antlr.org/wiki/display/ST/STST+-+StringTemplate+Standalone+Tool),
>> > specifically with respect to the use of JSON as the data model powering
>> > the
>> > templates.
>> > The webapp can be found at http://stringtemplate.appspot.com/ , and the
>> > public github repository can be found
>> > at https://github.com/I82Much/StringTemplate-Sandbox . This is my first
>> > webapp so it's very much a beta product at the minute. I'm using
>> > StringTemplate 3.2.1 jar as that's the version I've got the most
>> > experience
>> > with; switching it to 4 should not be too much work if that's more
>> > useful.
>> > What do people think, is this a worthwhile idea? If so, I'd love to
>> > hear
>> > feedback and things to improve (especially in the design area).
>> > Known bugs:
>> > Whitespace isn't being output correctly to the "rendered template" side.
>> > It
>> > works fine locally but when I deploy it to app engine, new lines seem to
>> > get
>> > eaten up.
>> > Limitations/things to fix in future work:
>> > No support for StringTemplate group/multiple templates.
>> > No syntax highlighting
>> >
>> >
>> > --
>> > Nicholas Dunn
>> >
>> >
>> > _______________________________________________
>> > stringtemplate-interest mailing list
>> > stringtemplate-interest at antlr.org
>> > http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>> >
>> >
>
>
>
> --
> Nicholas Dunn
>
>
More information about the stringtemplate-interest
mailing list