Text::Xslate::Bridge::Alloy - Template::Alloy virtual methods for Xslate
This document describes Text::Xslate::Bridge::Alloy version 1.0001.
use Text::Xslate::Bridge::Alloy; my $xslate = Text::Xslate->new( module => [ 'Text::Xslate::Bridge::Alloy' ], ); print $xslate->render_string('<: "foo".length() :>'); # => 3
Text::Xslate::Bridge::Alloy provides Xslate with Template::Alloy virtual methods.
Note that Template::Alloy does not distinguish methods and filters. That is, expr | foo is the same as expr.foo(). This module exports all the features as methods, so you must use the latter syntax even for filters.
expr | foo
expr.foo()
Text::Xslate::Bridge::Alloy->methods() -> %methods
Perl 5.8.1 or later.
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
Text::Xslate
Template::Alloy
Template::Alloy::VMethod
Goro Fuji (gfx) <gfuji(at)cpan.org>
Copyright (c) 2010, Goro Fuji (gfx). All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic for details.
To install Text::Xslate::Bridge::Alloy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Xslate::Bridge::Alloy
CPAN shell
perl -MCPAN -e shell install Text::Xslate::Bridge::Alloy
For more information on module installation, please visit the detailed CPAN module installation guide.