The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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:

  • action

  • actions

  • active

  • adstring

  • adstring2

  • assets

  • autopopulated

  • bcc

  • biz_class

  • burner

  • can_be_overridden

  • can_copy

  • can_preview

  • can_publish

  • categories

  • category

  • cc

  • cols

  • contact

  • contacts

  • container

  • content_type

  • contrib_type

  • contributor

  • contributors

  • cookie

  • cover_date

  • data

  • default

  • default_val

  • deploy_date

  • deploy_status

  • description

  • desk

  • desks

  • dest

  • displayed

  • doc_root

  • domain_name

  • element_type

  • element_type_set

  • elements

  • expire_date

  • ext

  • exts

  • field

  • field_type

  • field_types

  • file

  • file_ext

  • file_name

  • filename

  • first_publish_date

  • fixed_uri

  • fixed_uri_format

  • fixed_url

  • fname

  • from

  • handle_other

  • handle_text

  • host_name

  • include

  • includes

  • is_media

  • key_name

  • keyword

  • keywords

  • len (Alias for "length")

  • lname

  • login

  • manual

  • max_occur

  • max_size

  • media

  • media_type

  • min_occur

  • mname

  • move_method

  • multiple

  • name

  • opt

  • opt_type

  • options

  • opts

  • os

  • output_channel

  • output_channels

  • paginated

  • password

  • path

  • place

  • post_path

  • pre_path

  • precision

  • pref

  • prefix

  • primary_uri

  • priority

  • protocol

  • publish

  • publish_date

  • publish_status

  • related_media

  • related_story

  • repeatable

  • required

  • role

  • rows

  • screen_name

  • server

  • servers

  • site

  • sites

  • size

  • slug

  • sort_name

  • source

  • story

  • subelement_type

  • subelement_types

  • subject

  • suffix

  • tplate (Alias for "template")

  • to

  • top_level

  • type

  • uri

  • uri_case

  • uri_format

  • use_slug

  • user

  • val_name

  • value

  • widget_type

  • workflow

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.