Locale::Maketext::Extract::Plugin::Xslate - Xslate format parser
use Locale::Maketext::Extract; use Locale::Maketext::Extract::Plugin::Xslate; my $ext = Locale::Maketext::Extract->new( plugins => { xslate => { syntax => 'TTerse', extensions => ['tt', 'html'], }, }, warnings => 1, verbose => 1, ); $ext->extract_file('tmpl/index.tt'); $ext->compile(1); $ext->write_po('messages.po');
Extracts strings to localise from Text::Xslate templates.
THIS IS A DEVELOPMENT RELEASE. API MAY CHANGE WITHOUT NOTICE.
Valid formats are:
Kazuhiro Osawa <yappo {@} shibuya {dot} pl>
Text::Xslate, Locale::Maketext::Extract
Copyright (C) Kazuhiro Osawa
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Locale::Maketext::Extract::Plugin::Xslate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Maketext::Extract::Plugin::Xslate
CPAN shell
perl -MCPAN -e shell install Locale::Maketext::Extract::Plugin::Xslate
For more information on module installation, please visit the detailed CPAN module installation guide.