lib/sapluuna/parser.rb in sapluuna-0.1.4 vs lib/sapluuna/parser.rb in sapluuna-0.1.5

- old
+ new

@@ -2,11 +2,11 @@ class Sapluuna class Parser CODE_OPEN = '<%\s*' CODE_CLOSE = '\s*%>' - TEMPLATE_OPEN = '^\s*{{{[\t ]*' - TEMPLATE_CLOSE = '\s*}}}\s*$' + TEMPLATE_OPEN = '[\t ]*{{{[\t ]*' + TEMPLATE_CLOSE = '[\t ]*}}}[\t ]*\n?' NEW_LINE = "\n" class ParserError < Error; end class UnterminatedBlock < ParserError; end def initialize