Re: WO Template parsing
Re: WO Template parsing
- Subject: Re: WO Template parsing
- From: Mike Schrag <email@hidden>
- Date: Fri, 15 Jun 2007 07:12:54 -0700
Project Wonder's ERXInlineTemplate with inline bindings enabled ...
ms
On Jun 15, 2007, at 1:15 AM, Cedarstone wrote:
Hi
We have a WO application that uses components to return strings to
certain sections of a web page, pretty standard stuff. However now
we would like to be able to embed variables within those strings
that get evaluated at runtime, essentially turning them into mini
templates. We don't use Wonder at the moment but I noticed
ERXSimpleTemplateParser which is capable of handling a template
like ... "Hello, @@name@@. How are you feeling today?" where name
is obviously substituted for a value at runtime. This may be a
starting point for us but ideally we need something more powerful
capable of handling @@user.address.postcode@@ where user and
address are EOs also perhaps the handling of conditionals etc.
Clearly WO itself has all these abilities in its handling of
component templates and I would like to try and leverage this. My
problem is where do I start! I am assuming that people are already
doing this, if so which WO classes should I be looking at? Or even
better are there any code snippets to get me started.
Many thanks
Giles
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden