Skip to content

Instantly share code, notes, and snippets.

@coderoshi
Created August 21, 2012 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coderoshi/3417813 to your computer and use it in GitHub Desktop.
Save coderoshi/3417813 to your computer and use it in GitHub Desktop.
Register FML in Middleman
# Register the FML plugin to middleman
module Middleman::Renderers::FAQML
def registered(app)
begin
require "faqml"
app.before_configuration { template_extensions :fml => :html }
::FAQML::Engine.set_default_options(
:buffer => '@_out_buf',
:generator => ::Temple::Generators::StringBuffer
)
rescue LoadError
end
end
end
Middleman::Application.register Middleman::Renderers::FAQML
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment