mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
20 lines
No EOL
370 B
Ruby
Executable file
20 lines
No EOL
370 B
Ruby
Executable file
module Middleman::Renderers::Haml
|
|
class << self
|
|
def registered(app)
|
|
# Base library
|
|
require "haml"
|
|
|
|
# Coffee-script filter for Haml
|
|
require "coffee-filter"
|
|
|
|
app.helpers Helpers
|
|
end
|
|
alias :included :registered
|
|
end
|
|
|
|
module Helpers
|
|
def haml_partial(name, options = {})
|
|
render(name, options)
|
|
end
|
|
end
|
|
end |