module JAPR::TemplateHelper
Contains helper methods used by the tag template classes
Public Instance Methods
output_path()
click to toggle source
# File lib/japr/templates/template_helper.rb, line 6 def output_path root_path? ? '' : "/#{@path}" end
root_path?()
click to toggle source
# File lib/japr/templates/template_helper.rb, line 10 def root_path? stripped_path = @path.to_s.strip stripped_path.nil? || stripped_path.empty? || stripped_path == '/' end