module Middleman::CoreExtensions::Features::ClassMethods
def activate(feature)
Alternatively, you can pass in a Middleman feature module directly.
activate :lorem
feature module and includes it.
It takes a underscore-separated symbol, finds the appropriate
This method is available in the project's `config.rb`.
def activate(feature) if feature.is_a? Symbol feature = feature.to_s end if feature.is_a? String feature = feature.camelize feature = Middleman::Features.const_get(feature) end $stderr.puts "== Activating: #{feature}" if logging? register feature end