NAME
MojoX::I18N::Lexemes - parse lexemes from Mojolicious template
SYNOPSIS
use MojoX::I18N::Lexemes;
my $l = MojoX::I18N::Lexemes->new;
my $lexemes = $l->parse(q|Simple <%=l 'lexem' %>|);
DESCRIPTION
MojoX::I18N::Lexemes parses internatinalized lexemes from Mojolicious templates.
ATTRIBUTES
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;
METHODS
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.
DEVELOPMENT
Repository
http://github.com/und3f/mojoliciousx-lexicon
AUTHOR
Sergey Zasenko, undef@cpan.org
.
COPYRIGHT
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.