Kazuhiro Osawa > Locale-Maketext-Extract-Plugin-Xslate-v0.0.3 > Locale::Maketext::Extract::Plugin::Xslate

Download:
Locale-Maketext-Extract-Plugin-Xslate-v0.0.3.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: v0.0.3   Source  

NAME ^

Locale::Maketext::Extract::Plugin::Xslate - Xslate format parser

SYNOPSIS ^

  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');

DESCRIPTION ^

Extracts strings to localise from Text::Xslate templates.

THIS IS A DEVELOPMENT RELEASE. API MAY CHANGE WITHOUT NOTICE.

VALID FORMATS ^

Valid formats are:

[% l('string') %]
[% l('string %1', args[, ...]) %]
[% IF l('string') = 'FOO' %]

KNOWN FILE types ^

.tt
.html

AUTHOR ^

Kazuhiro Osawa <yappo {@} shibuya {dot} pl>

SEE ALSO ^

Text::Xslate, Locale::Maketext::Extract

LICENSE ^

Copyright (C) Kazuhiro Osawa

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: