Login
Artifact [76f0decff0]
Login

Artifact 76f0decff0e30046cb336b956e77cb57f2e6e491:


const CGI = api.cgi
const R = CGI.request
const F = CGI.getFossilInstance()
const out = api.io.output


$out <<<EOF

<p>
This page demonstrates using a scripting language binding to
<a href='http://fossil.wanderinghorse.net/repos/libfossil'>libfossil</a>
to create applications which can browse repository database content.
This entire site is generated using that script binding. See the links
at the bottom of each page for the page's source code.
</p>

<p>
See the menu at the top for other things to do and see.
</p>

<p>
Current repository:
EOF

$out ' ' Fossil.client.linkToProject( '', F.getProjectName() )

$out {</p>}

catch {
    const imgUuid = '55d4a86663045441eb9485' /* libfossil: resources/fossil-logo-3.png */
    const uuid = F.symToUuid(imgUuid) /* will throw if the repo doesn't have this image */
    $out {<p><a href='http://fossil-scm.org' title='Fossil SCM'>}
    $out "<img src='" CGI.cgiRoot.concat('download/uuid/', uuid, '?name=logo.png') "'/>"
    $out {</a></p>}
}