Skip to content

Commit

Permalink
mention that namespaces should only be shared very carefully
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 25, 2012
1 parent fe2f868 commit a716fe1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Mojo/Template.pm
Expand Up @@ -531,8 +531,8 @@ Encoding used for template files.
=head2 C<escape>
my $code = $mt->escape;
$mt = $mt->escape(sub { reverse $_[0] });
my $cb = $mt->escape;
$mt = $mt->escape(sub { reverse $_[0] });
A callback used to escape the results of escaped expressions, defaults to
L<Mojo::Util/"xml_escape">.
Expand Down Expand Up @@ -578,6 +578,8 @@ this method is attribute and might change without warning!
$mt = $mt->namespace('main');
Namespace used to compile templates, defaults to C<Mojo::Template::SandBox>.
Note that namespaces should only be shared very carefully between templates,
since functions and global variables will not be cleared automatically.
=head2 C<prepend>
Expand Down

0 comments on commit a716fe1

Please sign in to comment.