Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.195.914 Times

Template::Declare::Bricolage 0.01

Company: David Wheeler
Date Added: August 24, 2013  |  Visits: 340

Template::Declare::Bricolage

Report Broken Link
Printer Friendly Version


Product Homepage
Download (42 downloads)



It can be a lot of work generating XML for passing to the Bricolage SOAP interface. After experimenting with a number of XML-generating libraries, I got fed up and created this module to simplify things. It's a very simple subclass of Template::Declare that supplies a functional interface to templating your XML. All the XML elements understood by the Bricolage SOAP interface are exported from Template::Declare::TagSet::Bricolage, which you can use independent of this module if you require a bit more control over the output.<br /><br />But the advantage to using Template::Declare::Bricolage is that it sets up a bunch of stuff for you, so that the usual infrastructure of setting up the templating environment, outputting the top-level element and the XML namespace, is just handled. You can just focus on generating the XML you need to send to Bricolage.<br /><br />And the nice thing about Template::Declare's syntax is that it's, well, declarative. Just use the elements you need and it will do the rest. For example, the code from the Synopsis returns:<br /><br /> < assets xmlns="http://bricolage.sourceforge.net/assets.xsd" ><br /> < workflow id="1027" ><br /> < name >Blogs< /name ><br /> < description >Blog Entries< /description ><br /> < site >Main Site< /site ><br /> < type >Story< /type ><br /> < active >1< /active ><br /> < desks ><br /> < desk start="1" >Blog Edit< /desk ><br /> < desk publish="1" >Blog Publish< /desk ><br /> < /desks ><br /> < /workflow ><br /> < /assets ><br /><br />bricolage {}<br /><br />In addition to all of the templating functions exported by Template::Declare::TagSet::Bricolage, Template::Declare::Bricolage exports one more function, bricolage. This is the main function that you should use to generate your XML. It starts the XML document with the XML declaration and the top-level < assets > element required by the the Bricolage SOAP API. Otherwise, it simply executes the block passed to it. That block should simply use the formatting functions to generate the XML you need for your assets. That's it.<br /><br />Synopsis<br /><br /> use Template::Declare::Bricolage;<br /><br /> say bricolage {<br /> workflow {<br /> attr { id => 1027 };<br /> name { 'Blogs' }<br /> description { 'Blog Entries' }<br /> site { 'Main Site' }<br /> type { 'Story' }<br /> active { 1 }<br /> desks {<br /> desk { attr { start => 1 }; 'Blog Edit' }<br /> desk { attr { publish => 1 }; 'Blog Publish' }<br /> }<br /> }<br /> }

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Active Assets Block Blog Bricolage Description Desks Elements Exported Generate Generating Gtblog Interface Simply Templatedeclarebricolage Templatedeclarebricolage 0 01 Templatedeclaretagsetbricolage Templating Toplevel Workflow
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


TEMPLATE::DECLARE::BRICOLAGE RELATED
Web Browser Tools  -  Image and Flash Blocker 0.56
Allows user to block images and/or flash elements on a page. ,In 1 click you can choose if you want to see images or flash,it can help you to free fast surf , and stop seeing ads. you can choose in 1 click "Images on, Flash on"
20.48 KB  
Business  -  Xtracta 4.2
Xtracta allows you to extract block attribute values from AutoCAD drawing files at lightning speed! You simply specify what attribute tags you want to extract in a text file and the program does the rest! With Xtracta it's possible to extract from...
4.24 MB  
Development Tools  -  Fortran Logical mex functions 1.0
mxLogicalFunctions.for provides a suite of functions to support conversion of Fortran logical variables to/from MATLAB style mxArray variables in mex routines or engine applications. Assumes that the MATLAB logical class uses 1 byte for storage of...
10 KB  
Application Add-Ins  -  Elements Mail for Mac OS 1.0
A powerful companion to the cloud computing application, Elements CRM. Serving as the connection between your email account and Elements CRM, Elements Mail automatically records relevant emails between you and your customers. Once configured,...
2.72 MB  
Organizers  -  Active Agenda 0.8.2b 1.0
Active Agenda is a community developed software application for operational risk management (OpRisk). Active Agenda consists of more than eighty (80) integrated modules which help companies to manage and reduce risk and related costs. Active...
 
Utilities  -  Active Home Vista 2.2.5
Active Home Vista is the ácontrol centerá of your home automation system. You can control all your devices, program the X10 interface and receive updates from the X10 interface to see whatás going on X10-wise. Dusk & dawn timers are supported....
1.6 MB  
Modules  -  SimpleBlogroll 6.x-1.3 1.0
After providing the URL of the sites' feeds you want to track and a few settings to the module, it fetches their latest item's title as well as its date, URL and the URL from the site, and displays it all chronologically on a block.The newest...
 
Modules  -  Pingbacks on Comments 1.0
Does your blog contain lots of comments that link to other blogs? This plugin takes advantage of the comments left on your blog and performs pingbacks on the links in the comments left on your site. * Goes through each comment on your blog and...
30.72 KB  
Libraries  -  Redland RDF library 1.0.6
Redland RDF library is a set of free software packages that provide support for the Resource Description Framework (RDF)..
440.32 KB  
Libraries  -  Tie::Array::RestrictUpdates 0.01
Tie::Array::RestrictUpdates can limit the number of times you change elements in an array. SYNOPSIS use Tie::Array::RestrictUpdates; tie @foo,"Tie::Array::RestrictUpdates",1; # Default limit is 1. # Every element from the array can only be...
3.07 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, WEB AUTHORING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Web Authoring  -  django-compass 0.1
django-compass is a Django app that offers simple compilation of Compass projects. #md5=f8c46f23a0329cb77da8e35c14e3c54c
10.24 KB  
Web Authoring  -  django-debug-toolbar 0.9.1
jango-debug-toolbar is a configurable set of panels that display various debug information about the current request/response and when clicked, display more details about the panel's content. Currently, the following panels have been...
143.36 KB  
Web Authoring  -  El Cid 0.2
El Cid is a cheezy little caller id program for Linux. Running as a background process, El Cid writes output into a comma seperated variable file. This is then parsed by other utilities such as elcgi.pl, which generates pages for viewing via the web.
51.2 KB  
Web Authoring  -  supercaptcha 0.1.1
supercaptcha is a Django plugin that adds a captcha field for the new forms. Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. md5=7b1d933dbeeecc6f36c6c0c9cf3e71b2
10.24 KB  
Web Authoring  -  Camera Life 2.6.4 Beta 1
Camera Life is PHP software you can run to show your photos on your own website. Camera Life is easy to setup and customize if want to blend it in with the rest of your site. The two big features are: great photo organization, and a...
3.64 MB