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.
</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>}
}