[stringtemplate-interest] antlr.org contact

Terence Parr parrt at antlr.org
Fri May 8 12:31:45 PDT 2009


On May 5, 2009, at 10:34 AM, donrasbridge at gmail.com wrote:

> Don Rasbridge wrote:
>
> Terence:
> I have a little Java background, but more recently Objective-C.
> I have been so frustrated by MVC and GUI toolkit issues in general -  
> the complexity and entanglement.
> I was blown away by your StringTemplate, but don't fully understand  
> it yet.

glad it is food for thought.

> 1. Does StringTemplate preclude using all Ajax and javascript since  
> that would be putting code into the view?

Well, ST can't control what you put in the template so you can use  
JavaScript with no problem.  The problem of course is that pull data  
from the server which starts to break model view separation.

>
> Is it OK as long as it doesn't modify the Model? For example,  
> perhaps it is a simple Mouse-over effect.

  it's not just simple things like avoiding modifying the model. You  
want to avoid embedding logic. embedding mouse over stuff is okay  
though.

These are good questions...i hope it's okay if I send to the interest  
list also.

> 2. If Ajax and/or JS can still be used, what is the workflow? In  
> other words, can I use StringTemplate to "inject" the Ajax/JS code,  
> or is there a more advisable way?

well, I think you just included like regular HTML.

> I couldn't find any articles or docs on how to incorporate ajax with  
> StringTemplate.
>
> 3. Could Groovy's "builder" mechanism be used fairly easily to do  
> the same sort of thing as StringTemplate?  Not that I'm trying to  
> underestimate the power or amount of
> effort involved in StringTemplate.  It's sometimes just edifying to  
> contrast two different approaches - then I begin to understand how  
> it works.

remind me what the builder does?

> I'm kinda new to the web development world.  I want to build my own  
> Loosely Coupled framework of "components" that are as simple as  
> possible.  I want strict
> MVC enforcement so that I CAN have a loosely coupled system and  
> build dynamic websites generatively (for the most part).  I want to  
> automate as much as possible,
> and this is the way I see that happing (not heavyweight inflexible  
> frameworks like Rails).  Any suggestions/links/articles along these  
> lines would be appreciated -
> specifically with regard other web framework components that work  
> well with StringTemplate (or perhaps those that I should shy away  
> from.)

A number of people have written webpages about incorporating it into  
other systems. I think the C# guys have incorporated it into cocoon  
etc..

> Great work.  I always appreciate academic people who can write  
> intelligent, useful, readable papers that get their ideas across to  
> us lowly people. Then when they actually
> produce products that people use and love, as you have ... that's  
> pretty uncommon.

Thanks :)  Glad to help.

Ter


More information about the stringtemplate-interest mailing list