Sha256: 99524e81c903b82b5d719eb6ba3455d512df863bae94b287dbacf25f2affd804

Contents?: true

Size: 242 Bytes

Versions: 61

Compression:

Stored size: 242 Bytes

Contents

module Gollum
  class Macro
    class AllPages < Gollum::Macro
      def render
        if @wiki.pages.size > 0
          '<ul id="pages">' + @wiki.pages.map { |p| "<li>#{p.name}</li>" }.join + '</ul>'
        end
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
gollum-lib-4.0.0 lib/gollum-lib/macro/all_pages.rb