NAME

Template::Semantic::Document - Template::Semantic Result object

SYNOPSIS

my $out = Template::Semantic->process('template.html', {
    'title, h1' => 'foo',
});

print $out;
print $out->as_string; # same as avobe

my $out = Template::Semantic->process('template.html', {
    '.foo, .bar' => 'baz',
    '.mee@class' => 'moo',
})->process({
    '#boo@src' => 'grr',
    '#yea .ye' => 'yoo',
})->process({
    '.foo' => sub { uc },
    '.bar' => sub { lc },
});

METHODS

$out->as_string

Returns the result as XHTML/XML.

"$out" (stringify)

Calls as_string() internally.

$out = $out->process( \%vars )

Process again to the result and returns Template::Semantic::Document object again. So you can chain like ->process(...)->process(...).

SEE ALSO

Template::Semantic

AUTHOR

Naoki Tomita <tomita@cpan.org>