mail seamons.com wrote:
> I'd like to request that the Virtual Objects instead
get accessed using
> a name that doesn't have potential conflicts with other
items in the stash.
You'll be able to call them what you like through the usual
plugin interface.
[% USE Hash %]
[% h = Hash.new(a=10) %]
[% USE Roger=Hash %]
[% h = Roger.new(a=10) %]
Or you can access them via the default 'hash:' namespace or
to a namespace
of your choosing. This sidesteps the whole variable
namespace altogether.
[% hash = hash:new(a=10) %]
In this example, the first 'hash' is a variable, the second
'hash:' is a
namespace, and the 'new' is an item within the 'hash:'
namespace, totally
separate from any variables that may be called 'hash', 'new'
or anything
else.
Cheers
A
_______________________________________________
templates mailing list
templates template-toolkit.org
http://lists.template-toolkit.org/mailman/listinfo/t
emplates
|