Module: Middleman::Renderers::FAQML
- Defined in:
- lib/middleman-faqml/renderer.rb
Class Method Summary collapse
- .registered(app) ⇒ Object (also: included)
Class Method Details
.registered(app) ⇒ Object Also known as: included
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/middleman-faqml/renderer.rb', line 3 def registered(app) begin require "faqml" app.before_configuration do template_extensions :fml => :html end # Setup FAQML options to work with partials ::FAQML::Engine.( :buffer => '@_out_buf', :generator => ::Temple::Generators::StringBuffer ) rescue LoadError puts "Error Loading FAQML" end end |