!!! %html %head %meta{charset: 'utf-8'} %title Directory Listing of #{url_path} :css #{include('normalize.css')} #{include('common.css')} #{include('index.css')} %body #container %h1 Directory Listing of #{url_path} %ul - if show_gallery %li %a{href: "#{url_path}?gallery"} Gallery - unless url_path == "/" %li %a{href: "../"} ../ - (directories + files).each do |file| - relative_path = file.relative_path_from(fs_path).to_s %li - if file.directory? (Dir)  %a{href: relative_path} = relative_path