Sha256: 754a5fd8e87bd730469d171d439d786824c9f61bae4fbd1e0ff2c215a723fca6

Contents?: true

Size: 505 Bytes

Versions: 33

Compression:

Stored size: 505 Bytes

Contents

module PowerStencil
  module Plugins

    module Templates

      SETUP_PLUGIN_TEMPLATES = :setup_plugin_templates

      def register_plugin_templates
        if plugin_module.respond_to? SETUP_PLUGIN_TEMPLATES
          logger.debug "Plugin '#{name}' declares to have template(s)."
          capabilities[:templates] = true
          plugin_module.send SETUP_PLUGIN_TEMPLATES
        else
          logger.debug "Plugin '#{name}' declares to have no template."
        end
      end

    end

  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
power_stencil-0.4.2 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.1 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.0 lib/power_stencil/plugins/templates.rb
power_stencil-0.3.9 lib/power_stencil/plugins/templates.rb
power_stencil-0.3.8 lib/power_stencil/plugins/templates.rb
power_stencil-0.3.7 lib/power_stencil/plugins/templates.rb
power_stencil-0.3.6 lib/power_stencil/plugins/templates.rb
power_stencil-0.3.5 lib/power_stencil/plugins/templates.rb
power_stencil-0.3.4 lib/power_stencil/plugins/templates.rb
power_stencil-0.3.3 lib/power_stencil/plugins/templates.rb
power_stencil-0.3.2 lib/power_stencil/plugins/templates.rb
power_stencil-0.3.1 lib/power_stencil/plugins/templates.rb
power_stencil-0.3.0 lib/power_stencil/plugins/templates.rb