From 7468bbccc24d2c8bec3d0d29c85a9c2e68b78eda Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 2 Jul 2013 11:23:39 -0400 Subject: default to TTerse syntax (but make it configurable) --- lib/Spreadsheet/Template/Processor/Xslate.pm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3-54-g00ecf