lib/gollum/page.rb
# Loads a sub page.  Sub page nanes (footers) are prefixed with
# an underscore to distinguish them from other Pages.
#
# name - String page name.
#
# Returns the Page or nil if none exists.
Loads a sub page.  Sub page nanes (footers) are prefixed with
an underscore to distinguish them from other Pages.

String page name.

Returns the Page or nil if none exists.
Loads a sub page . Sub page nanes ( footers ) are prefixed with an underscore to distinguish them from other Pages . String page name . Returns the Page or nil if none exists .
def find_sub_page(name)
      return nil unless self.version
      return nil if self.filename =~ /^_/
      name = "_#{name.to_s.capitalize}"
      return nil if page_match(name, self.filename)
      dirs = self.path.split('/')
      dirs.pop
      map = @wiki.tree_map_for(@wiki.ref)
      while !dirs.empty?
        if page = find_page_in_tree(map, name, dirs.join('/'))
          page.parent_page = self
          return page
        end
        dirs.pop
      end
      if page = find_page_in_tree(map, name, '')
        page.parent_page = self
      end
      page
    end
def find_sub_page ( name ) return nil unless self . version return nil if self . filename =~ / ^_ / name = "_#{name.to_s.capitalize}" return nil if page_match ( name , self . filename ) dirs = self . path . split ( '/' ) dirs . pop map = @wiki . tree_map_for ( @wiki . ref ) while ! dirs . empty? if page = find_page_in_tree ( map , name , dirs . join ( '/' ) ) page . parent_page = self return page end dirs . pop end if page = find_page_in_tree ( map , name , '' ) page . parent_page = self end page end
Loads a sub page.
Loads a sub page .
name