mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
18 lines
No EOL
522 B
Ruby
18 lines
No EOL
522 B
Ruby
require "padrino-core/application/rendering"
|
|
|
|
module Middleman::CoreExtensions::Rendering
|
|
class << self
|
|
def registered(app)
|
|
# Tilt-aware renderer
|
|
app.register Padrino::Rendering
|
|
|
|
# Activate custom renderers
|
|
app.register Middleman::Renderers::Slim
|
|
app.register Middleman::Renderers::Haml
|
|
app.register Middleman::Renderers::Sass
|
|
app.register Middleman::Renderers::Markdown
|
|
app.register Middleman::Renderers::CoffeeScript
|
|
end
|
|
alias :included :registered
|
|
end
|
|
end |