Henning P. Schmiedehausen escribió:
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.


Also, it looks like any "context" should implement something simple like java.util.Map, which would ease the decoupling heavily and allow integration with most frameworks.


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...


I think Jetspeed should do it. In fact, there are movements in this direction going on already in Jetspeed-1. I like Velocity a lot, and it is used for basic aggregation inside jetspeed. But more and more people wants a JSP portal, and they are using jetspeed and developing on it.


Regards -- Santiago Gala High Sierra Technology, S.L. (http://hisitech.com) http://memojo.com?page=SantiagoGalaBlog




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



Reply via email to