lib/locomotive/mounter/reader/file_system/pages_reader.rb
# Build the tree of pages based on the filesystem structure
#
# @return [ Hash ] The pages organized as a Hash (using the fullpath as the key)
#
Build the tree of pages based on the filesystem structure
Build the tree of pages based on the filesystem structure
def read
            self.fetch
            index, not_found = self.pages['index'], self.pages['404']
            [index, not_found].each { |p| p.localize_fullpath(self.locales) }
            self.build_relationships(index, self.pages_to_list)
            self.pages
          end
def read self . fetch index , not_found = self . pages [ 'index' ] , self . pages [ '404' ] [ index , not_found ] . each { | p | p . localize_fullpath ( self . locales ) } self . build_relationships ( index , self . pages_to_list ) self . pages end
Build the tree of pages based on the filesystem structure
Build the tree of pages based on the filesystem structure
# localize the fullpath for the 2 core pages: index and 404 # Locomotive::Mounter.with_locale(:en) { self.to_s } # DEBUG # Locomotive::Mounter.with_locale(:fr) { self.to_s } # DEBUG
The pages organized as a Hash (using the fullpath as the key)
The pages organized as a Hash ( using the fullpath as the key )
 Hash 