Module: JekyllAssetPipeline::TemplateHelper
- Included in:
- Template
- Defined in:
- lib/jekyll_asset_pipeline/templates/template_helper.rb
Overview
Contains helper methods used by the tag template classes
Instance Method Summary collapse
Instance Method Details
#output_path ⇒ Object
4 5 6 |
# File 'lib/jekyll_asset_pipeline/templates/template_helper.rb', line 4 def output_path root_path? ? '' : "/#{@path}" end |
#root_path? ⇒ Boolean
8 9 10 11 12 13 |
# File 'lib/jekyll_asset_pipeline/templates/template_helper.rb', line 8 def root_path? stripped_path = @path.to_s.strip stripped_path.nil? || stripped_path.empty? || stripped_path == '/' end |