Text::Clevery - Smarty compatible template engine on Xslate
This document describes Text::Clevery version 0.0004.
use Text::Clevery; my $tc = Text::Clevery->new(); my %vars = ( lang => 'Smarty', ); # pass a PSGI request my $psgi_env = {}; print $tc->render_string('Hello, {$lang} world!', \%vars, env => $psgi_env); # or pass a request object my $request = Plack::Request->new($psgi_env); print $tc->render_string('Hello, {$lang} world', \%vars, request => $request);
Text::Clevery is a Smarty compatible template engine implemented on Xslate.
This software is under development. Feel free to send any feature requests and/or bug reports.
This is a subclass of Text::Xslate. See Text::Xslate for details
There are unsupported features, listed as follows.
{include_php}
{insert}
{php}
{section}
{strip}
{assign}
{debug}
{eval}
{fetch}
{mailto}
{math}
{popup}
{popup_init}
{textformat}
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
http://www.smarty.net/
Fuji, Goro (gfx) <gfuji(at)cpan.org>
Copyright (c) 2010, Fuji, Goro (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::Clevery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Clevery
CPAN shell
perl -MCPAN -e shell install Text::Clevery
For more information on module installation, please visit the detailed CPAN module installation guide.