module Thymeleaf::Processor
Public Instance Methods
evaluate_in_context(context, expr)
click to toggle source
# File lib/thymeleaf/processor.rb, line 8 def evaluate_in_context(context, expr) ContextEvaluator.new(context).evaluate(expr) end
load_template(template_name) { |read| ... }
click to toggle source
# File lib/thymeleaf/processor.rb, line 17 def load_template(template_name) template_uri = Thymeleaf.configuration.template_uri(template_name) File.open template_uri do |template_file| template_file.rewind yield template_file.read end end
subprocess_node(context, node)
click to toggle source
# File lib/thymeleaf/processor.rb, line 12 def subprocess_node(context, node) processor = Thymeleaf::TemplateEngine.new processor.send(:process_node, context, node) end