module JekyllAssetPipeline::TemplateHelper

Contains helper methods used by the tag template classes

Public Instance Methods

output_path() click to toggle source
# File lib/jekyll_asset_pipeline/templates/template_helper.rb, line 6
def output_path
  root_path? ? '' : "/#{@path}"
end
root_path?() click to toggle source
# 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