[Petal] [BUG] can't set variables to static values
Steve Purkis
spurkis at quiup.com
Thu May 22 15:44:58 BST 2003
Hi,
This is a bug report for Petal-0.92. I haven't been able to find a way
to set variables to static values (without writing any plugins). If
I'm just being thick, please let me know :-). Here are some test cases:
<?var name="set: foo '1'"?>
<?if name="true: foo"?>ok 1<?else?>not ok 1<?end?>
<!-- this throws an error -->
<?var name="set: bar 2"?>
<?if name="true: bar"?>ok 2<?else?>not ok 2<?end?>
<span petal:set="baz '3'">
<?if name="true: baz"?>ok 3<?else?>not ok 3<?end?>
</span>
The docs on 'define' lead me to believe I should be able to do the
above (ie: isn't '1' just an expression?)
Regards,
-Steve
More information about the Petal
mailing list