lib/express_templates/template/handler.rb in express_templates-0.11.1 vs lib/express_templates/template/handler.rb in express_templates-0.11.2

- old
+ new

@@ -8,12 +8,13 @@ end def call(template) # call ripper stuff method - warn_contains_logic("(#{ExpressTemplates.compile(template)}).html_safe") # pass the source code # returns a string to be eval'd - "(#{ExpressTemplates.compile(template)}).html_safe" + source = "(#{ExpressTemplates.compile(template)}).html_safe" + warn_contains_logic(source) # pass the source code + source end def warn_contains_logic(compiled_template) keywords = %w(if until unless case for do loop while) # array of conditional keywords tokens = []