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:
actionactionsactiveadstringadstring2assetsautopopulatedbccbiz_classburnercan_be_overriddencan_copycan_previewcan_publishcategoriescategorycccolscontactcontactscontainercontent_typecontrib_typecontributorcontributorscookiecover_datedatadefaultdefault_valdeploy_datedeploy_statusdescriptiondeskdesksdestdisplayeddoc_rootdomain_nameelement_typeelement_type_setelementsexpire_dateextextsfieldfield_typefield_typesfilefile_extfile_namefilenamefirst_publish_datefixed_urifixed_uri_formatfixed_urlfnamefromhandle_otherhandle_texthost_nameincludeincludesis_mediakey_namekeywordkeywordslen(Alias for "length")lnameloginmanualmax_occurmax_sizemediamedia_typemin_occurmnamemove_methodmultiplenameoptopt_typeoptionsoptsosoutput_channeloutput_channelspaginatedpasswordpathplacepost_pathpre_pathprecisionprefprefixprimary_uripriorityprotocolpublishpublish_datepublish_statusrelated_mediarelated_storyrepeatablerequiredrolerowsscreen_nameserverserverssitesitessizeslugsort_namesourcestorysubelement_typesubelement_typessubjectsuffixtplate(Alias for "template")totop_leveltypeuriuri_caseuri_formatuse_sluguserval_namevaluewidget_typeworkflow
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
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.