Module: Middleman::Clementine

Defined in:
lib/middleman-clementine/extension.rb,
lib/middleman-clementine/version.rb

Overview

Clementine extension

Constant Summary collapse

VERSION =
"0.0.3"

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object

Once registered



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/middleman-clementine/extension.rb', line 11

def registered(app)
  # Location of javascripts external to source directory.
  # @return [Array]
  #   set :js_assets_paths, ["#{root}/assets/javascripts/", "/path/2/external/js/repository/"]

  # Once Middleman is setup
  app.after_configuration do
    ::Sprockets.register_engine 'clj', ::Clementine::ClojureScriptTemplate
    ::Sprockets.register_engine 'cljs', ::Clementine::ClojureScriptTemplate
    ::Tilt.register 'clj', ::Clementine::ClojureScriptTemplate
    ::Tilt.register 'cljs', ::Clementine::ClojureScriptTemplate
  end
end