How to combine XPathScript with YAML?

F

franz

I like XPathScript (AxKit) for transforming XML,
but I would like to use YAML for defining the template-hash.

I put a "PerlModule YAML" in apache httpd.conf and put
%$t= %{YAML::Load(<<'...')};
in my XPathScript template.

That works fine, but I also want to put 'testcode' subkeys into the YAML
part. These contain perl subroutnines and I don't know how to load code.
I have seen an option LoadCode in YAML's manpage but I can't figure out
how to use it.

greetz,
franz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top