gitoria
All repositories: gitoria
776 B
// components/code.hl — THE CODE PAGE of a repo (gitoria#9, gitoria#16): /code, /code/<path>: the main branch (the owner's setting) at its last commit.// Its own route, rendered on the server (repo from the request's host, content from git: codebrowser.hl).// THE PATH AFTER /code/: the route `/code/*path` binds the rest of the path to the member `path` (hybriel#81).parent './main.hl'import { siteName } from '../project.hl'import RepoHead from './repohead.hl'import CodeBrowser from './codebrowser.hl'import { pageTitle } from '../repos.hl'import { slugOfHost } from '../users.hl'host = nullpath = ''__title = pageTitle(siteName, slugOfHost(host), 'Code')View {repoPage {RepoHead { onCodePage = true }CodeBrowser { kind = "code" rest = path }}}
Branches
- mainmain branch