You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Kok Hoor <ko...@solutionx.com.my> on 2004/01/19 03:38:54 UTC

Context scope macros

Hi all,

    My company is planning to use Velocity for our new Web Hosting
Service.
I am trying to use the same Velocity instance for all the webapps we
host.
However, it is definitely not desireable for these webapps to share the
same
macros. For example, we might have a site_name VM, but each site might
be
able to override this macro. One problem is that, if I set 

velocimacro.permissions.allow.inline.local.scope = true,

And if I place all my macros for a webapp in a special file, say
'macros.vm',
I am not able to invoke them, even after using #parse 'macros.vm'.

Is there any way to do it? Has anybody thought of using Context scope
macros?
Any implementation?

Thanks in advance.

Regards,
    Kok Hoor    



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org