Santiago Gala <[EMAIL PROTECTED]> writes:

>IMO, most of what is needed is to abstract the 
>org.apache.velocity.context.Context class as a generic Template Context 
>for the pull service and to substitute most "VelocityXXX" class names 
>for "TemplateXXX"

Yep. You're right on spot.

>Look for instance to the VelocityDirectLayout. It only uses the Context, 
>and the main Velocity class to get it.

That's why it is called _Velocity_DirectLayout, not
TemplateDirectLayout. One of the legacies of the old "Java Class for
Layout/Page/Screen" models is the fact, that Templating isn't as deep
in Turbine as it might be in other web frameworks. This has its
advantages and its disadvantages. The fact that we have specialist
classes for e.g. Velocity instead of a generic "TemplateLayout" class
stems from this.

>If the FM context for bean like object has a similar interface, it does 
>not look like a daunting task.

Right.

>[EMAIL PROTECTED] jakarta-turbine-2]$ egrep -Rl "org.apache.velocity.[^c]" 
>src/java/
>src/java/org/apache/turbine/services/pull/TurbinePullService.java
>src/java/org/apache/turbine/services/velocity/TurbineVelocityService.java

>Now, this work will be much better done if someone who knows the needs 
>or specific template engines helps in the abstraction process of the 
>context.

Well, this would mean that there is _need_ for it. I personally don't
have a need for it which means, that I use my meagre free time devoted
to Turbine for things more interesting to me. I'm willing to review
patches (in fact you can bet on it ;-) ) but if anyone want me to do
this, well, contact me off-list...

        Regards
                Henning

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

--- Quote of the week: "It is pointless to tell people anything when
you know that they won't process the message." --- Jonathan Revusky

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to