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