include T('default/layout/html') def init super @topfile = options.readme @toptitle = options.readme.attributes[:title] || "Documentation Overview" if @file == options.readme @page_title = options.title else @page_title = @file.title end index = options.files.index(@file) if index @prevfile = index > 0 ? (options.files[index - 1] || options.readme) : nil @nextfile = options.files[index + 1] end end def diskfile options.including_object = @object super end