Shigeki Morimoto > HTML-Template-Parser-0.1010 > HTML::Template::Parser

Download:
HTML-Template-Parser-0.1010.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.1010   Source   Latest Release: HTML-Template-Parser-0.1011

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.

syntax highlighting: