class Flay
Public Instance Methods
process_haml(file)
click to toggle source
Process haml and parse the result. Returns the sexp of the parsed ruby.
# File lib/flay_haml.rb, line 10 def process_haml file haml = File.read file ruby = Haml::Engine.new(haml).precompiled begin RubyParser.new.process(ruby, file) rescue => e warn ruby if option[:verbose] raise e end end