14 lines
196 B
Ruby
14 lines
196 B
Ruby
|
require 'haml'
|
||
|
|
||
|
module Hamlit
|
||
|
class Parser
|
||
|
def initialize(options = {})
|
||
|
@options = options
|
||
|
end
|
||
|
|
||
|
def call(template)
|
||
|
Haml::Parser.new(template, {}).parse
|
||
|
end
|
||
|
end
|
||
|
end
|