How to combine XPathScript with YAML?

Discussion in 'Perl Misc' started by franz, Dec 1, 2004.

  1. franz

    franz Guest

    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
    franz, Dec 1, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RubyQuestions
    Replies:
    0
    Views:
    215
    RubyQuestions
    Dec 3, 2003
  2. Paul Battley

    YAML.dump/YAML.load bug

    Paul Battley, Aug 3, 2005, in forum: Ruby
    Replies:
    0
    Views:
    170
    Paul Battley
    Aug 3, 2005
  3. Eric Promislow
    Replies:
    4
    Views:
    201
    Eric Promislow
    Oct 31, 2006
  4. Joshua Choi

    yaml.rb and YAML "%" directives

    Joshua Choi, Jan 14, 2007, in forum: Ruby
    Replies:
    1
    Views:
    156
  5. Fransiscus Xaverius

    YAML Problem YAML::Object

    Fransiscus Xaverius, Dec 14, 2007, in forum: Ruby
    Replies:
    2
    Views:
    146
    Fransiscus Xaverius
    Dec 14, 2007
Loading...

Share This Page