Template::CTemplate - Perl bindings for Google CTemplate
use Template::CTemplate; my $tpl = Template::CTemplate::Template->new( 'blog.tpl', Template::CTemplate::DO_NOT_STRIP ); my $dict = Template::CTemplate::Dictionary->new('ENTRIES'); $dict->show_section("FOO"); $dict->set_value("TITLE", "Templating for the masses"); my $output = $tpl->expand($dict);
This library is at a very early stage, and is of EXTREME alpha quality.
This is currently a very basic set of bindings to google's ctemplate libraries. Please see http://code.google.com/p/google-ctemplate/ for more details.
Most of the implementation is exercised by the unit tests. Please see those for more implementation details and examples.
* Documentation * Examples * More Perl/XS based wrappings, ::Simple like
Scott McWhirter, <email@example.com>
Copyright (C) 2007 by Scott McWhirter
This library is available under the terms of the BSD license.
Please see the enclosed LICENSE file for details.