2015-10-06 23:14:45 +09:00
|
|
|
require 'haml'
|
|
|
|
|
|
|
|
module Hamlit
|
|
|
|
class Parser
|
|
|
|
def initialize(options = {})
|
|
|
|
@options = options
|
|
|
|
end
|
|
|
|
|
|
|
|
def call(template)
|
2015-10-07 00:18:41 +09:00
|
|
|
Haml::Parser.new(template, Haml::Options.defaults).parse
|
2015-10-06 23:14:45 +09:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|