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.22 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.21 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.20 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.19 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.18 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.17 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.16 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.15 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.14 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.13 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.12 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.11 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.10 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.9 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.8 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.7 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.6 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.5 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.4 lib/power_stencil/plugins/templates.rb
power_stencil-0.4.3 lib/power_stencil/plugins/templates.rb