Class: Gollum::Macro::AllPages

Inherits:
Gollum::Macro show all
Defined in:
lib/gollum-lib/macro/all_pages.rb

Instance Method Summary collapse

Methods inherited from Gollum::Macro

#initialize, instance

Constructor Details

This class inherits a constructor from Gollum::Macro

Instance Method Details

#renderObject



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>#{p.name}</li>" }.join + '</ul>'
  end
end