MojoX::I18N::Lexemes - parse lexemes from Mojolicious template
use MojoX::I18N::Lexemes; my $l = MojoX::I18N::Lexemes->new; my $lexemes = $l->parse(q|Simple <%=l 'lexem' %>|);
MojoX::I18N::Lexemes parses internatinalized lexemes from Mojolicious templates.
MojoX::I18N::Lexemes implements the following attributes.
helper
my $helper = $l->helper; $l = $l->helper('l');
I18N template helper, defaults to 'l'.
renderer
my $renderer = $l->renderer; $l = $l->renderer(Mojo::Template->new);
Template object to use for parsing operations, by default a Mojo::Template object will be used;
MojoX::I18N::Lexemes inherits all methods from Mojo::Base and implements the following ones.
parse
my $lexemes = $l->parse($template);
Parses template and returns arrayref of found lexemes.
http://github.com/und3f/mojoliciousx-lexicon
Sergey Zasenko, undef@cpan.org.
undef@cpan.org
Copyright (C) 2015, Sergey Zasenko
This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.
To install Mojolicious::Command::generate::lexicon, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Command::generate::lexicon
CPAN shell
perl -MCPAN -e shell install Mojolicious::Command::generate::lexicon
For more information on module installation, please visit the detailed CPAN module installation guide.