summaryrefslogtreecommitdiffstats
path: root/lib/Spreadsheet/Template/Processor/Xslate.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Spreadsheet/Template/Processor/Xslate.pm')
-rw-r--r--lib/Spreadsheet/Template/Processor/Xslate.pm14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/Spreadsheet/Template/Processor/Xslate.pm b/lib/Spreadsheet/Template/Processor/Xslate.pm
index e86b106..d5c89d4 100644
--- a/lib/Spreadsheet/Template/Processor/Xslate.pm
+++ b/lib/Spreadsheet/Template/Processor/Xslate.pm
@@ -5,11 +5,23 @@ use Text::Xslate;
with 'Spreadsheet::Template::Processor';
+has syntax => (
+ is => 'ro',
+ isa => 'Str',
+ default => 'TTerse',
+);
+
has xslate => (
is => 'ro',
isa => 'Text::Xslate',
lazy => 1,
- default => sub { Text::Xslate->new(type => 'text') },
+ default => sub {
+ my $self = shift;
+ return Text::Xslate->new(
+ type => 'text',
+ syntax => $self->syntax
+ );
+ },
);
sub process {