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
6 7 8 |
# File 'lib/jekyll_asset_pipeline/templates/template_helper.rb', line 6 def output_path root_path? ? '' : "/#{@path}" end |
#root_path? ⇒ Boolean
10 11 12 13 14 15 |
# File 'lib/jekyll_asset_pipeline/templates/template_helper.rb', line 10 def root_path? stripped_path = @path.to_s.strip stripped_path.nil? || stripped_path.empty? || stripped_path == '/' end |