class Tumblargh::Renderer::Blocks::Tags
Rendered for each of a post's tags.
Public Instance Methods
render()
click to toggle source
Calls superclass method
Tumblargh::Renderer::Blocks::Base#render
# File lib/tumblargh/renderer/blocks/tags.rb, line 23 def render if context.is_a? Resource::Tag super else context.tags.map do |tag| tag.context = self self.class.new(node, tag).render end.flatten.join('') end end
tag()
click to toggle source
# File lib/tumblargh/renderer/blocks/tags.rb, line 7 def tag context.name end
tag_url()
click to toggle source
# File lib/tumblargh/renderer/blocks/tags.rb, line 15 def tag_url "/tagged/#{url_safe}" end
tag_url_chrono()
click to toggle source
# File lib/tumblargh/renderer/blocks/tags.rb, line 19 def tag_url_chrono "#{tag_url}/chrono" end
url_safe_tag()
click to toggle source
# File lib/tumblargh/renderer/blocks/tags.rb, line 11 def url_safe_tag escape_url(tag) end