藤 吾郎 > Text-Clevery-0.0004 > Text::Clevery

Download:
Text-Clevery-0.0004.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.0004   Source  

NAME ^

Text::Clevery - Smarty compatible template engine on Xslate

VERSION ^

This document describes Text::Clevery version 0.0004.

SYNOPSIS ^

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

DESCRIPTION ^

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.

INTERFACE ^

This is a subclass of Text::Xslate. See Text::Xslate for details

COMPATIBILITY ^

Unsupported features

There are unsupported features, listed as follows.

DEPENDENCIES ^

Perl 5.8.1 or later.

BUGS ^

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.

SEE ALSO ^

Text::Xslate

http://www.smarty.net/

AUTHOR ^

Fuji, Goro (gfx) <gfuji(at)cpan.org>

LICENSE AND COPYRIGHT ^

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.

syntax highlighting: