Skip to content

Commit

Permalink
v0.002
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrchboy committed Feb 16, 2012
1 parent 7385d3b commit e9d7004
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Changes
Expand Up @@ -2,5 +2,10 @@ Revision history for HTML-Builder

{{$NEXT}}

0.002 2012-02-16 10:37:46 America/Los_Angeles
- add span to :minimal
- nested tags now write to STDOUT rather than return; this helps obviate the
need for say() or print() all over the place

0.001 2012-02-14 11:21:16 America/Los_Angeles
- initial release
17 changes: 15 additions & 2 deletions README.pod
Expand Up @@ -8,7 +8,7 @@ HTML::Builder - A declarative approach to HTML generation

=head1 VERSION

This document describes 0.001 of HTML::Builder - released February 14, 2012 as part of HTML-Builder.
This document describes 0.002 of HTML::Builder - released February 16, 2012 as part of HTML-Builder.

=head1 SYNOPSIS

Expand Down Expand Up @@ -57,6 +57,19 @@ Generates:

L<gets> may be specified multiple times, for multiple attributes.

=head2 Nested Tags

When one tag function is called from within another, the nested tag will print
its output to STDOUT rather than returning it. That means that this:

div { print h1 { 'Hi there! }; p { "Nice day, isn't it?" } }

...and this:

div { h1 { 'Hi there! }; p { "Nice day, isn't it?" } }

Behave identically, from the perspective of the caller.

=head1 EXPORTED FUNCTIONS

Each tag we handle is capable of being exported, and called with a coderef.
Expand All @@ -81,7 +94,7 @@ from.

A basic set of the most commonly used tags:

h1..h4 div p img script br ul ol li style a
h1..h4 div p img span script br ul ol li style a

=head3 moose_safe

Expand Down

0 comments on commit e9d7004

Please sign in to comment.