ctucx.git: nimstagit

[nimlang] incomplete reimplementation of stagit

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
#? stdtmpl | standard
#proc templateRefsPage(templateContext: TemplateContext): string =
#  result = ""
<!DOCTYPE html>
<html>
    <head>
        <title>$templateContext.repoName - $templateContext.siteTitle</title>

        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="$templateContext.description">
        <meta name="generator" content="https://cgit.ctu.cx/nimstagit">

        <link href="/style.css" rel="stylesheet" />
    </head>
    <body>
        <header>
            <h1><a href="/">$templateContext.siteTitle</a>: $templateContext.repoName</h1>
            <p>$templateContext.description</p>
        </header>
        <nav>
            <a href="/$templateContext.repoUrl">summary</a>
            <a href="/$templateContext.repoUrl/log">log</a>
            <a href="/$templateContext.repoUrl/tree">tree</a>
            <a href="/$templateContext.repoUrl/refs" class="active">refs</a>
        </nav>
        <main>
        </main>
        <footer><p>Generated on $templateContext.generated</p></footer>
    </body>
</html>