module CrystalGauntlet::Templates extend self macro dir_header() path_split = context.request.path.split('/') "
" + path_split.map_with_index { |v, i| "#{i == 0 ? "crystal-gauntlet" : v}"}.join(" / ") + "
" end def footer() %(
Crystal #{Crystal::VERSION}
#{Crystal::BUILD_COMMIT}
running on
#{System.hostname}
for #{CrystalGauntlet.uptime_s}
) end end