[stringtemplate-interest] stringtemplate-interest Digest, Vol 74, Issue 2
Nicholas Dunn
i82much at gmail.com
Sat May 7 10:42:01 PDT 2011
I added rudimentary syntax highlighting via the CodeMirror 2 module. It
works better for the JSON bit than the ST code. Looking forward to hacking
away on this some more later.
On Mon, May 2, 2011 at 3:00 PM,
<stringtemplate-interest-request at antlr.org>wrote:
> Send stringtemplate-interest mailing list submissions to
> stringtemplate-interest at antlr.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
> or, via email, send a message with subject or body 'help' to
> stringtemplate-interest-request at antlr.org
>
> You can reach the person managing the list at
> stringtemplate-interest-owner at antlr.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of stringtemplate-interest digest..."
>
>
> Today's Topics:
>
> 1. Re: Interactive StringTemplate sandbox (Terence Parr)
> 2. Re: Interactive StringTemplate sandbox (Michael Bedward)
> 3. Re: Interactive StringTemplate sandbox (Michael Bedward)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 1 May 2011 13:33:49 -0700
> From: Terence Parr <parrt at cs.usfca.edu>
> Subject: Re: [stringtemplate-interest] Interactive StringTemplate
> sandbox
> To: stringtemplate-interest List <stringtemplate-interest at antlr.org>
> Message-ID: <CC485722-4F0C-4ED6-950E-E201377C7D56 at cs.usfca.edu>
> Content-Type: text/plain; charset=us-ascii
>
> cool :) a "madlib" program kinda
> T
> On Apr 30, 2011, at 9:08 PM, Nicholas Dunn 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
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 2 May 2011 14:36:05 +1000
> From: Michael Bedward <michael.bedward at gmail.com>
> Subject: Re: [stringtemplate-interest] Interactive StringTemplate
> sandbox
> To: Nicholas Dunn <i82much at gmail.com>
> Cc: stringtemplate-interest at antlr.org
> Message-ID: <BANLkTinNPVNm=V_8=sK=bhhwYo1CBr6kAg at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 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
> >
> >
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 2 May 2011 22:38:24 +1000
> From: Michael Bedward <michael.bedward at gmail.com>
> Subject: Re: [stringtemplate-interest] Interactive StringTemplate
> sandbox
> To: stringtemplate-interest List <stringtemplate-interest at antlr.org>
> Message-ID: <BANLkTimbotU=6-2sGhapOZmObb1ftTQUjA at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I'm using Safari 5.04 on OSX 10.6.7.
>
> Michael
>
> > On 2 May 2011 22:12, Nicholas Dunn <nicholas.c.dunn at gmail.com> wrote:
> >> What browser are you using? ?It works for me in Chrome and Firefox on my
> >> Mac.
> >>
> >> On Mon, May 2, 2011 at 12:36 AM, Michael Bedward <
> michael.bedward at gmail.com>
> >> wrote:
> >>>
> >>> 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
> >>> >
> >>> >
> >>
> >>
> >>
> >> --
> >> Nicholas Dunn
> >> http://about.me/nicholasdunn
> >>
> >
>
>
> ------------------------------
>
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest
>
>
> End of stringtemplate-interest Digest, Vol 74, Issue 2
> ******************************************************
>
--
Nicholas Dunn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20110507/60189cf0/attachment-0001.html
More information about the stringtemplate-interest
mailing list