Build XML, HTML, CSS & more using Perl
Perl
Permalink
Failed to load latest commit information.
lib Fixed test due to Perl new hash randomisation plus tidied up the docs Dec 16, 2012
t Fixed test due to Perl new hash randomisation plus tidied up the docs Dec 16, 2012
.gitignore
Build.PL
Changes Fixed test due to Perl new hash randomisation plus tidied up the docs Dec 16, 2012
MANIFEST post 0.06 Manifest changes Dec 16, 2012
MANIFEST.SKIP post 0.06 Manifest changes Dec 16, 2012
README version 0.06 in README Dec 16, 2012
README.pod version 0.06 in README Dec 16, 2012
TODO Updated test suite & docs. Minor additions/fixes for new tests to work Jan 1, 2009

README.pod

Builder

Build XML, HTML and (eventually!) other outputs in blocks

VERSION

version 0.06

This distribution includes the following modules:

    Builder             (0.06)
    Builder::Utils      (0.06)
    Builder::XML        (0.06)
    Builder::XML::Utils (0.06)

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 2008-2013 Barry Walsh (Draegtun Systems Ltd | http://www.draegtun.com), all rights reserved.

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