# ~*~ encoding: utf-8 ~*~ module Gollum # FileView requires that: # - All files in root dir are processed first # - Then all the folders are sorted and processed class FileView # common use cases: # set pages to wiki.pages and show_all to false # set pages to wiki.pages + wiki.files and show_all to true def initialize(pages, options = {}) @pages = pages @show_all = options[:show_all] || false @checked = options[:collapse_tree] ? '' : "checked" end def enclose_tree(string) %Q(