class Zenweb::Page::TagDetail
Generates a virtual page with an index for a given tag on the given pages. You must subclass and provide a content method.
Attributes
Public Class Methods
Source
# File lib/zenweb/page.rb, line 601 def self.generate_all site, dir, pages tags_for(pages).sort.each do |tag, pgs| path = tag.downcase.gsub(/\W+/, '') self.all[tag] = self.new site, "#{dir}/#{path}.html.md.erb", pgs, tag end end
Source
# File lib/zenweb/page.rb, line 608 def initialize site, path, pages, tag super site, path, pages self.tag = tag end
Calls superclass method
Zenweb::Page::GeneratedIndex::new