David E. Wheeler > Template-Declare-Bricolage-0.01 > Template::Declare::TagSet::Bricolage

Download:
Template-Declare-Bricolage-0.01.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

Name ^

Template::Declare::TagSet::Bricolage - Tag set for Generating Bricolage SOAP XML

Synopsis ^

  package My::Bricolage::SOAP::Gen;
  use base 'Template::Declare';
  use Template::Declare::Tags 'Bricolage';

  template bricolage => sub {
      xml_decl { 'xml', version => '1.0', encoding => 'utf-8' };
      assets {
          attr { xmlns =>  'http://bricolage.sourceforge.net/assets.xsd' };
          workflow {
              attr        { id => 1027     };
              name        { 'Blogs'        }
              description { 'Blog Entries' }
              site        { 'Main Site'    }
              type        { 'Story'        }
              active      { 1              }
              desks  {
                  desk { attr { start   => 1 }; 'Blog Edit'    }
                  desk { attr { publish => 1 }; 'Blog Publish' }
              }
          }
      }
  };

  package main;
  use Template::Declare;

  Template::Declare->init( roots => ['My::Bricolage::SOAP::Gen']);
  print Template::Declare->show('bricolage');

Description ^

This module creates a tag set to support all of the XML elements understood by the Bricolage SOAP API. See Template::Declare and Template::Declare::Tags for details on how to use it. Better yet, use Template::Declare::Bricolage and keep it simple.

The exported tag functions are:

Support ^

This module is stored in an open GitHub repository, http://github.com/theory/template-declare-bricolage/tree/. Feel free to fork and contribute!

Please file bug reports at http://github.com/theory/template-declare-bricolage/issues/.

Author ^

David E. Wheeler <david@kineticode.com>

Copyright and License ^

Copyright (c) 2009 David E. Wheeler. Some Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: