Skip to content

Commit

Permalink
Add docs for TemplateToolkit; update TODO-Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
perlpilot committed Jun 27, 2012
1 parent 89a9266 commit 67f2b4b
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TODO-Documentation
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ developers. There are 3 levels of documentation:
[ ] Dancer::Handler::File
[ ] Dancer::Handler::AutoPage
[r] Dancer::Template::Tiny
[ ] Dancer::Template::TemplateToolkit
[r] Dancer::Template::TemplateToolkit
[r] Dancer::Session::YAML
[r] Dancer::Session::Simple
[r] Dancer::Plugin
Expand Down
80 changes: 80 additions & 0 deletions lib/Dancer/Template/TemplateToolkit.pm
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,83 @@ sub render {

1;

__END__
=pod
=head1 NAME
Dancer::Template::TemplateToolkit - Template::Toolkit backend to Dancer
=head1 SYNOPSIS
To use this engine, you may configure L<Dancer> via C<config.yaml>:
template: "template_toolkit"
Or you may also change the rendering engine on a per-route basis by
setting it manually with C<set>:
# code code code
set template => 'template_toolkit';
=head1 SUBROUTINES/METHODS
=head2 render TEMPLATE, TOKENS
Renders the template. The first arg is a filename for the template file
or a reference to a string that contains the template. The second arg
is a hashref for the tokens that you wish to pass to
L<Template::Toolkit> for rendering.
=head1 AUTHOR
Alexis Sukrieh
=head1 BUGS
Please report any bugs or feature requests to
C<bug-dancer-template-templatetoolkit at rt.cpan.org>, or through the web interface at
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer-Template-Template-Toolkit>.
I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Dancer::Template::Tiny
You can also look for information at:
=over 4
=item * RT: CPAN's request tracker
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dancer-Template-TemplateToolkit>
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/Dancer-Template-TemplateToolkit>
=item * CPAN Ratings
L<http://cpanratings.perl.org/d/Dancer-Template-TemplateToolkit>
=item * Search CPAN
L<http://search.cpan.org/dist/Dancer-Template-TemplateToolkit/>
=back
=head1 LICENSE AND COPYRIGHT
Copyright 2012
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
=cut

0 comments on commit 67f2b4b

Please sign in to comment.