1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/lib/middleman/renderers/haml.rb
2011-07-10 13:55:40 -07:00

31 lines
No EOL
614 B
Ruby
Executable file

module Middleman::Renderers::Haml
class << self
def registered(app)
# Base library
require "haml"
# Coffee-script filter for Haml
begin
require "coffee-filter"
rescue LoadError
end
# Code-ray Syntax highlighting
begin
require 'haml-coderay'
rescue LoadError
end
app.helpers Helpers
#app.set :haml, app.settings.haml.merge({ :ugly_haml => true })
end
alias :included :registered
end
module Helpers
def haml_partial(name, options = {})
render(name, options)
end
end
end