velocity-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Stevens <>
Subject Re: Pluggable directives
Date Tue, 06 Nov 2001 18:17:58 GMT
on 11/6/01 10:09 AM, "Michael Bayne" <> wrote:

> I expect that providing my own directive is the best way to do this.

Since you don't want to use a tool in the context, yes. :-)


If you want that to look like a # instead of a $, you could wrap that in a
global velocimacro:

#macro (import $file)$import.file($file)#end

Which would give you:


All without having to add another directive to Velocity.

Of course, this is a different train of thought than what Webmacro goes with
since they don't have velocimacro's (at least the last time I checked).


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message