Hi, No ideas?
Bye, Andras
I'm working on a web templating system, and I'm wondering how should I use rules?I have these defs: rule elem { \< wts \: (<[a..z]>+) \/ \> } rule block { \< wts \: (<[a..z]>+)\>(.*?)\< \/ wts \: $1 \> }I would like to execute subroutines during the evaluation. What should I do? Is the following the right way?given $template { s/<block>/{trigger_block()}/; s/<elem>/{trigger_elem()}/; }How can I catch the matched elem name, and block content? I'm guessing that hypotetical variables can be the solution, but it says, that those variables should have been defined, before I use them, and it's not that case.
