Thanks René! I’m gonna check out ERXSimpleTemplateParser. Maybe that will fill the role I’m looking for. Should have known there might be something in Wonder to handle this.
I guess one argument for using something outside of ER* is that the code becomes more portable. Tim > On Oct 9, 2015, at 9:01 AM, René Bock <[email protected]> wrote: > > Hi Tim, > > did you have a look at ERXSimpleTemplateParser? > > This works great, if you have simple text mail with placeholders containing > keypaths. > > On the other side, you may use WOComponents as "template engine", > > Regards, > > René > >> Am 09.10.2015 um 17:39 schrieb T Worman <[email protected] >> <mailto:[email protected]>>: >> >> Reaching out to the list to see what my fellow abandonees prefer for >> templating. My needs are pretty simple - I’m just looking to use templates >> to compose emails. I have far too many email methods where the bodies of the >> emails are completely composed in code and I’d really like to move that out >> to some template engine. >> >> So, the question is, what template engine do you prefer for this kind of >> work? Obviously, we’ve already got velocity producing our EO .java files - >> and I’m sure that’s workable. Any strong preferences out there? >> >> I really like StringTemplate (http://www.stringtemplate.org >> <http://www.stringtemplate.org/>). A feature I liked was the ability to pass >> an object to the template and the template could contain “keypaths” to >> attributes of the object - very much like we expect from the WO template >> engine. However, it would not work with accessors that do not use the get* >> convention - which I haven’t. I could convert but not sure it is worth it. >> >> Tim >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list ([email protected] >> <mailto:[email protected]>) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient.de >> <https://lists.apple.com/mailman/options/webobjects-dev/bock%40salient.de> >> >> This email sent to [email protected] > > -- > salient doremus > > salient GmbH > Kontorhaus - Lindleystraße 12 > 60314 Frankfurt Main > > Fon +49 (0)69 - 650096 -0, Durchwahl: - 18, Fax: -70 > > http://www.salient.de <http://www.salient.de/> > http://www.doremus.com > http://www.openforms.de > > Geschäftsführer: Peter Biler, Alexander Gerling, Lars Ohlerich > Amtsgericht Frankfurt Main, HRB 48693 > > // Neuer Schwung auf allen Endgeräten für den Automobilclub von Deutschland: > http://www.avd.de/ <http://www.avd.de/>
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
