velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Smith, Mike H" <>
Subject Overriding the default precedence of the template engine
Date Thu, 20 Jul 2006 11:06:58 GMT


Is there a way to modify the precedence logic of the template engine?


In particular, I'd like to:



1.	Define a template like:


#set( $this = "Velocity")

$this is great!


2.	Within the application code, set the "this" property to be
something different (e.g. "Laughter")
3.	Then have the engine render as "Laughter is great"



With the current implementation the rendering precedence is template
then context, any easy way to reverse this?







  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message