class Deface::Sources::Haml

Public Class Methods

execute(override) click to toggle source
# File lib/deface/sources/haml.rb, line 4
def self.execute(override)
  if Rails.application.config.deface.haml_support
    haml_engine = Deface::HamlConverter.new(override.args[:haml])
    haml_engine.render
  else
    raise Deface::NotSupportedError, "`#{override.name}` supplies :haml source, but haml_support is not detected."
  end
end