diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Spreadsheet/Template/Processor/Xslate.pm | 14 |
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 { |