lib/handlebars_assets/config.rb in handlebars_assets-0.6.7 vs lib/handlebars_assets/config.rb in handlebars_assets-0.7.0

- old
+ new

@@ -3,17 +3,25 @@ # # HandlebarsAssets::Config.path_prefix = 'app/templates' module Config extend self - attr_writer :compiler, :compiler_path, :known_helpers, :known_helpers_only, :options, :path_prefix, :template_namespace + attr_writer :compiler, :compiler_path, :haml_options, :known_helpers, :known_helpers_only, :options, :path_prefix, :template_namespace def compiler @compiler || 'handlebars.js' end def compiler_path @compiler_path || HandlebarsAssets.path + end + + def haml_available? + defined? ::Haml::Engine + end + + def haml_options + @haml_options || {} end def known_helpers @known_helpers || [] end