lib/power_stencil/project/base.rb in power_stencil-0.6.2 vs lib/power_stencil/project/base.rb in power_stencil-0.6.3
- old
+ new
@@ -43,13 +43,21 @@
load_project_specific_config
check_project_version
bootstrap_plugins
build_engines
register_system_templates
+ register_plugins_templates
register_project_templates
end
private
+
+ def register_plugins_templates
+ plugins.each do |_, plugin|
+ plugin.register_plugin_templates
+ end
+ end
+
def register_project_templates
dir = project_templates_path
if Dir.exist? dir and File.readable? dir
logger.info 'Registering project specific templates.'
\ No newline at end of file