HTML::Template::Parser - Parser for HTML::Template syntax template file & writer.
This document describes HTML::Template::Parser version 0.1.
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);
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.
Creates a new tempalte parser.
Parse $string to tree.
Thanks to __gfx__ for the bug reports and patches.
Shigeki Morimoto <Shigeki(at)Morimo.to>
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.
To install HTML::Template::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Template::Parser
CPAN shell
perl -MCPAN -e shell install HTML::Template::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.