NAME
HTML::Template::Parser - Parser for HTML::Template syntax template file & writer.
VERSION
This document describes HTML::Template::Parser version 0.1.
SYNOPSIS
use strict;
use warnings FATAL => qw(recursion);
use HTML::Template::Parser;
use HTML::Template::Parser::TreeWriter::TextXslate::Metakolon;
my $parser = HTML::Template::Parser->new;
my $tree = $parser->parse("<TMPL_VAR EXPR=html(name)>");
my $writer = HTML::Template::Parser::TreeWriter::TextXslate::Metakolon->new;
print $writer->write($tree);
DESCRIPTION
HTML::Template::Parser is parser module for tempalte file that is written in HTML::Template. It parse template file to tree object. It can write tree as TextXslate::Metakolon format.
INTERFACE
HTML::Template::Parser->new()
Creates a new tempalte parser.
$parser->parse($string)
Parse $string to tree.
ACKNOWLEDGEMENT
Thanks to __gfx__ for the bug reports and patches.
AUTHOR
Shigeki Morimoto <Shigeki(at)Morimo.to>
LICENSE AND COPYRIGHT
Copyright (c) 2011, Shigeki, Morimoto. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.