Sha256: 44ebafc22c9e0c98f761a2a228024f5211cc66c9cfa9828751cacecffd6009be
Contents?: true
Size: 706 Bytes
Versions: 1
Compression:
Stored size: 706 Bytes
Contents
module PowerStencil module Plugins module Templates def register_plugin_templates return unless capabilities[:templates] logger.info "Loading '#{self.name}' plugin templates..." plugin_definition[:templates].each do |templates_path| plugin_templates_path = File.join self.plugin_path, templates_path Dir.entries(plugin_templates_path).reject { |e| %w(. ..).include? e }.each do |entry| template_path = File.join(plugin_templates_path, entry) if Dir.exist? template_path project.register_template_path_for_type entry.to_sym, template_path end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
power_stencil-0.6.3 | lib/power_stencil/plugins/templates.rb |