MojoX::CustomTemplateFileParser - Parses a custom Mojo template file format (deprecated)
Version 0.1002, released 2015-11-26.
use MojoX::CustomTemplateFileParser; my $parser = MojoX::CustomTemplateFileParser->new(path => '/path/to/file.mojo', output => [qw/Html Pod Test]); print $parser->to_html; print $parser->to_pod; print $parser->to_test;
Deprecated. Replaced by Stenciller.
MojoX::CustomTemplateFileParser parses files containing Mojo::Templates mixed with the expected rendering.
The parsing creates a data structure that can be output in various formats using plugins.
Its purpose is to facilitate development of tag helpers.
path
The path to the file that should be parsed. Parsing occurs at object creation.
output
An array reference to plugins in the ::Plugin::To namespace.
::Plugin::To
No public methods. See plugins for output options.
Currently available plugins:
MojoX::CustomTemplateFileParser::To::Html
MojoX::CustomTemplateFileParser::To::Pod
MojoX::CustomTemplateFileParser::To::Test
Dist::Zilla::Plugin::Test::CreateFromMojoTemplates
Dist::Zilla::Plugin::InsertExample::FromMojoTemplates
https://github.com/Csson/p5-mojox-customtemplatefileparser
https://metacpan.org/release/MojoX-CustomTemplateFileParser
Erik Carlsson <info@code301.com>
This software is copyright (c) 2015 by Erik Carlsson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install MojoX::CustomTemplateFileParser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MojoX::CustomTemplateFileParser
CPAN shell
perl -MCPAN -e shell install MojoX::CustomTemplateFileParser
For more information on module installation, please visit the detailed CPAN module installation guide.