draegtun / builder
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (3)
- Wiki (1)
- Graphs
-
Branch:
master
builder /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Jan 04 05:02:05 -0800 2010 | |
| |
Build.PL | ||
| |
Changes | Fri Jan 16 01:37:34 -0800 2009 | |
| |
MANIFEST | ||
| |
MANIFEST.SKIP | Mon Jan 04 05:02:05 -0800 2010 | |
| |
MANIFEST.bak | Mon Jan 04 05:02:05 -0800 2010 | |
| |
META.yml | Fri Jan 16 01:37:34 -0800 2009 | |
| |
Makefile.PL | Thu Nov 27 06:16:30 -0800 2008 | |
| |
README | ||
| |
README.pod | Tue Dec 01 03:19:20 -0800 2009 | |
| |
TODO | Thu Jan 01 08:11:25 -0800 2009 | |
| |
lib/ | Mon Jan 19 07:06:46 -0800 2009 | |
| |
t/ |
README.pod
Builder
Build XML, HTML and (eventually!) other outputs in blocks
VERSION
version 0.04
This distribution includes the following modules:
Builder (0.04)
Builder::Utils (0.02)
Builder::XML (0.02)
Builder::XML::Utils (0.02)
SYNOPSIS
Using building blocks to render XML, CSS, HTML and other outputs.
use Builder;
my $builder = Builder->new;
my $xm = $builder->block( 'Builder::XML' );
# example 1
$xm->parent( { isa => 'Mother' }, $xm->child( 'Hi Mum!' ) );
say $builder->render;
# <parent isa="Mother"><child>Hi Mum!</child></parent>
# example 2
$xm->parent( sub {
for my $say qw/Mum Dad/ {
$xm->child( "Hi $say" );
}
});
say $builder->render;
# <parent><child>Hi Mum</child><child>Hi Dad</child></parent>
INSTALLATION
To install this module, run the following commands:
perl Build.PL
./Build
./Build test
./Build install
DEPENDENCIES
This module requires these other modules and libraries:
Carp
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the perldoc command.
perldoc Builder
COPYRIGHT AND LICENCE
Copyright (C) 2008,2009 Barry Walsh (Draegtun Systems Ltd)
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

