simplify haml renderer
This commit is contained in:
parent
6cefa401f9
commit
8cf36ffb64
1 changed files with 15 additions and 16 deletions
|
@ -1,11 +1,12 @@
|
||||||
require "haml"
|
module Middleman::Renderers::Haml
|
||||||
require "coffee-filter"
|
|
||||||
|
|
||||||
module Middleman
|
|
||||||
module Renderers
|
|
||||||
module Haml
|
|
||||||
class << self
|
class << self
|
||||||
def registered(app)
|
def registered(app)
|
||||||
|
# Base library
|
||||||
|
require "haml"
|
||||||
|
|
||||||
|
# Coffee-script filter for Haml
|
||||||
|
require "coffee-filter"
|
||||||
|
|
||||||
app.helpers Helpers
|
app.helpers Helpers
|
||||||
end
|
end
|
||||||
alias :included :registered
|
alias :included :registered
|
||||||
|
@ -16,6 +17,4 @@ module Middleman
|
||||||
render(name, options)
|
render(name, options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
Loading…
Reference in a new issue