Sha256: d4c8b47278001357bc02f8f2ba38f3bae0d4df8861af4b9cd3f567d12bfa3f97
Contents?: true
Size: 271 Bytes
Versions: 2
Compression:
Stored size: 271 Bytes
Contents
module ContentHelper def content_navigation(*pages) output = "<ul>" pages.each do |page| anchor = page.downcase.gsub(/\s+/, "_").gsub(/\W+/, "") output << %Q{<li><a href="##{anchor}">#{page}</a></li>} end output << "</ul>" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
staticmatic3-2.1.10 | website/src/helpers/content_helper.rb |
staticmatic3-2.1.9 | website/src/helpers/content_helper.rb |