summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-04 12:45:20 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-04 12:46:05 -0500
commit0bffdc354a8eff4361b93816d29395ae2cc5b0da (patch)
tree12d6402705735614c6dc4fdbf55076d5a560da47
parent7394fbd15c11f2fd4140d949b13d9ee1f631b1b4 (diff)
downloadtext-handlebars-0bffdc354a8eff4361b93816d29395ae2cc5b0da.tar.gz
text-handlebars-0bffdc354a8eff4361b93816d29395ae2cc5b0da.zip
compile {{{...}}} down to {{&...}} instead of {{mark_raw ...}}
shouldn't make a difference, but feels cleaner
-rw-r--r--lib/Text/Xslate/Syntax/Handlebars.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Text/Xslate/Syntax/Handlebars.pm b/lib/Text/Xslate/Syntax/Handlebars.pm
index 216e7c2..59ece35 100644
--- a/lib/Text/Xslate/Syntax/Handlebars.pm
+++ b/lib/Text/Xslate/Syntax/Handlebars.pm
@@ -179,7 +179,7 @@ sub preprocess {
}
}
elsif ($type eq 'raw_code') {
- $code .= qq{mark_raw $content;\n};
+ $code .= qq{&$content;\n};
}
else {
$self->_error("Oops: Unknown token: $content ($type)");