[Petal] [IDEA] Hash with params

Steve Purkis spurkis at mkdoc.com
Fri Sep 5 20:37:35 BST 2003


Hi,

It's just occurred to me - we've been having problems with using 
variables to look up values in a hash through Petal.  A solution might 
be to allow:

	$key => <span petal:replace="some/hash $key">hash key</span>

A similar argument would apply to Arrays:

	list[$idx] = <span petal:replace="some/list $idx">hash key</span>

Currently these cause Petal to croak - would changing this behaviour be 
a problem?

-Steve



More information about the Petal mailing list