Skip to content

Commit

Permalink
Clarify D2::Template::Simple's role in life.
Browse files Browse the repository at this point in the history
This is one thing to come out of Issue #1615 on GitHub. Got me to
thinking about why we have two template systems in core when we really
want to steer devs to other template engines.

After talking with SysPete and veryrusty, it was decided we should
update the pod here to clarify what role Dancer2::Template::Simple
fills, and to consider splitting Dancer2::Template::Tiny to another
distribution.
  • Loading branch information
cromedome committed May 8, 2021
1 parent 9a084df commit b325726
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions lib/Dancer2/Template/Simple.pm
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,14 @@ To use this engine, you may configure L<Dancer2> via C<config.yaml>:
=head1 DESCRIPTION
This template engine is provided as a default one for the Dancer2 micro
framework.
This template engine should be fine for development purposes but is not a
powerful one, it's written in pure Perl and has no C bindings to accelerate the
template processing.
If you want to power an application with Dancer2 in production environment, it's
strongly advised to switch to L<Dancer2::Template::TemplateToolkit>.
This template engine is primarily to serve as a migration path for users of
L<Dancer>. This should be fine for development purposes, but you would be
better served by using L<Dancer2::Template::TemplateToolkit> or one of the
many alternatives available on CPAN to power an application with Dancer2
in production environment.
C<Dancer2::Template::Simple> is written in pure Perl and has no C bindings
to accelerate the template processing.
=head1 SYNTAX
Expand Down

0 comments on commit b325726

Please sign in to comment.