 # filename : Extracts only the name (without the extension) of a file
 extractNameFromUri = (filename) ->
     path.basename(filename, path.extname(filename))
-                
+
 # Makes the uri relative to another one
 #
 # uri        : A string representing an URI

                if section.level <= currentLevel
                    parentScopes = parentScopes.slice 0, parentScopes.length - (currentLevel - section.level)
                    scope = parentScopes.pop()
                    
                entry = 
                    slug: file.slug
                    title: section.title
                    anchor: section.slug
                    childs: []
                    
                scope.push entry
                parentScopes.push scope
                scope = entry.childs

    #
    # options   : An object with the manifest's options
    # uri       : The URI of the manifest
    constructor: (options={}, @uri=null) ->
        @files = []
        @setOptions options

