Class: Gollum::Macro::AllPages
- Inherits:
-
Gollum::Macro
- Object
- Gollum::Macro
- Gollum::Macro::AllPages
- Defined in:
- lib/gollum-lib/macro/all_pages.rb
Instance Method Summary collapse
Methods inherited from Gollum::Macro
Constructor Details
This class inherits a constructor from Gollum::Macro
Instance Method Details
#render ⇒ Object
4 5 6 7 8 |
# File 'lib/gollum-lib/macro/all_pages.rb', line 4 def render if @wiki.pages.size > 0 '<ul id="pages">' + @wiki.pages.map { |p| "<li>#{CGI::escapeHTML(p.name)}</li>" }.join + '</ul>' end end |