Hi Graham,

I'm currently traveling to TSSJS in Las Vegas and will be there until next Monday. The initial quick 'pointer' that I can give you is that you should be able to use Velocity templates directly in elements and output its content through the outputstream or the print statement of the element.

Two things would be interesting to do I think:

* provide the instance of the current element to the Velocity template so that the data can be accessed from there, possibly you can also provide it with a map for the inputs and a map for the parameters (maybe even merge these together). IIRC that would then make data access very similar to how people use Velocity usually

* figure out a way to render embedded elements inside a Velocity template. The way how this currently works in RIFE is that the web engine checks for ELEMENT:id value tags and processes them using the processEmbeddedElement method. I don't know enough about Velocity, but this would definitely have to be integrated somehow, otherwise portlet-like or widget components will not be available.

Hope this gives you some ideas.

Best regards,

Geert

Graham O'Regan wrote:
Not quite, we discussed using actual velocity templates rather than "inspired" syntax. As Geert has mentioned, many people are put off by the current syntax because it is unlike any other templating system. I reckon if people could use a templating mechanism that they are used to Rife would gain much greater adoption.

You can see what was discussed here;

http://www.theserverside.com/news/thread.tss?thread_id=39529

In my situation I *have* to work with designers, I'd like to move to Rife, but I can't inflict that decision on the rest of the team. It should be largely transparent to them.

Emmanuel Okyere wrote:
I'm not sure it talked about "using velocity for templates"; rife
gives you a choice on the template syntax to use, which all compiles
back to the same thing

here's the thread you are looking for from the mailing list:
http://lists.uwyn.com/pipermail/rife-users/2006-February/019612.html

cheers,
eokyere

On 3/22/06, Graham O'Regan <[EMAIL PROTECTED]> wrote:
Geert: Just picking up from the TSS thread about using velocity for
templates (I use the name analogboy on TSS). Can you give me a few
pointers on where to start with that?
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users



--
Mohandas Gandhi - "My life is my message."
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users



------------------------------------------------------------------------

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to