diff --git a/lib/handlebars_assets/handlebars_template.rb b/lib/handlebars_assets/handlebars_template.rb index bc2a192..1f3ba1e 100644 --- a/lib/handlebars_assets/handlebars_template.rb +++ b/lib/handlebars_assets/handlebars_template.rb @@ -210,7 +210,7 @@ def check_extension(ext) result end - def is_haml? + def haml? result = false ::HandlebarsAssets::Config.hamlbars_extensions.each do |ext| result ||= check_extension(ext) @@ -218,7 +218,7 @@ def is_haml? result end - def is_slim? + def slim? result = false ::HandlebarsAssets::Config.slimbars_extensions.each do |ext| result ||= check_extension(ext) @@ -226,7 +226,7 @@ def is_slim? result end - def is_ember? + def ember? result = false ::HandlebarsAssets::Config.ember_extensions.each do |ext| result ||= check_extension(ext) @@ -234,7 +234,7 @@ def is_ember? result end - def is_partial? + def partial? @full_path.gsub(%r{.*/}, '').start_with?('_') end