class Jekyll::Tilt::Processors::Haml
Public Class Methods
opts(vars)
click to toggle source
–
# File lib/jekyll/tilt/processors/haml.rb, line 16 def self.opts(vars) out = vars[:site].config["haml"] || {} out.each_with_object({}) do |(k, v), h| h[k.to_sym] = v end end
run_for(content, **vars)
click to toggle source
# File lib/jekyll/tilt/processors/haml.rb, line 10 def self.run_for(content, **vars) Upstream::HamlTemplate.new(opts(vars)) { content } .render(**vars) end