this template <t> a = <t petal:replace="a"/> *** <t petal:define="a string:hello"> a = <t petal:replace="a"/> </t> </t> doesn't seem to work correctly. The define doesn't seem to have any effect. If you remove the line with *** it works fine. Any ideas? The generated code looks fine, F