]> git.imager.perl.org - bse.git/blobdiff - site/cgi-bin/modules/Squirrel/Template.pm
default <:= ... :> tags to html formatting
[bse.git] / site / cgi-bin / modules / Squirrel / Template.pm
index caa976a7ed1b23e895d42662de66e98b76eff574..2c0d75b6cf7b3593c9ab5af320700e75ba0c5387 100644 (file)
@@ -20,7 +20,7 @@ BEGIN {
 
 use constant DEBUG_GET_PARMS => 0;
 
-our $VERSION = "1.024";
+our $VERSION = "1.025";
 
 my %compile_cache;
 
@@ -34,6 +34,7 @@ sub new {
   $opts{param} = [];
   $opts{wraps} = [];
   $opts{errors} = [];
+  $opts{def_format} ||= "";
 
   return bless \%opts, $class;
 }
@@ -644,6 +645,15 @@ by template files.  Defaults to C<"utf-8">.
 A BSE::Cache object to use for caching compiled templates.  Note that
 templates are currently only cached by filename.
 
+=item formats
+
+A hashref of content formatters used for formatting C<< E<lt>=
+... E<gt> >> tags.
+
+=item def_format
+
+The default format for C<< E<lt>= ... E<gt> >> tags.
+
 =back
 
 =item show_page()