match/context
callroute-content
withroute$route
matchpage | login-page | filmmode: render
html lang{$lang}
callfull-head
body bg-whitedark:bg-blacktext-blackdark:text-whiteleading-tighth-screenoverflow-hidden
div h-fullflex
apply/contextin mode hackbar-container
div #main-content flex-1bg-whitedark:bg-slate-800overflow-y-autop-4
div @containerborderborder-gray-200dark:border-gray-700shadow-lgdark:bg-black
apply.in mode render-page
apply.in mode handle-page
matchcontextmode: hackbar-container
aside #hackbar-sidebar peerflexflex-shrink-0transition-allduration-300@container/hackbararia-expanded:w-1/3w-[12px] titleHackbar aria-expandedfalse
div flex-1overflow-hidden
callhackbar
withlang$lang
callhackbar-toggle-affordance
templatehackbar-toggle-affordance
div #hackbar-toggle w-3bg-gray-200dark:bg-gray-700hover:bg-gray-300dark:hover:bg-gray-600transition-colorscursor-col-resizegrouprelativeborder-xborder-gray-300dark:border-gray-600 titleDrag to resize • Double-click to toggle
div absoluteinset-0flexitems-centerjustify-centerpointer-events-none
div flexflex-colgap-1.5
div w-1h-1bg-gray-400dark:bg-gray-500rounded-full
div w-1h-1bg-gray-400dark:bg-gray-500rounded-full
div w-1h-1bg-gray-400dark:bg-gray-500rounded-full
templatefull-head
head
meta charsetUTF-8
meta nameviewport contentwidth=device-width, initial-scale=1.0
title
BSD ·
$routecallstylesheet-link
withfile'static/vendor/tailwind.css'
callstylesheet-link
withfile'static/dist/vendor.bundle.css'
callscript-link
withfile'static/dist/hypermedia.bundle.js'
link relpreconnect hrefhttps://fonts.googleapis.com
link relpreconnect hrefhttps://fonts.gstatic.com crossoriginanonymous
link hrefhttps://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap relstylesheet
link hrefhttps://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;500;600;700&display=swap relstylesheet
templateasset-url
parameter$file
$asset-hash←assets/asset[@file=$file]/@hash
"/"
$fileif$asset-hash
"?v="
$asset-hash
templatestylesheet-link
parameter$file
link relstylesheet
href←
callasset-url
withfile$file
templatescript-link
parameter$file
script
src←
callasset-url
withfile$file
matchpagemode: render-page
parameter$lang
div max-w-4xl
header mb-6
div flexitems-centergap-3mb-2
div bg-green-100dark:bg-green-900text-green-800dark:text-green-200px-2py-1roundedfont-boldtext-sm
PAGE
code bg-gray-100dark:bg-gray-800px-2py-1roundedtext-sm
@id
iftitle[@lang=$lang]
h1 text-3xlfont-boldmb-2
title[@lang=$lang]
div text-gray-600dark:text-gray-400font-monotext-sm
Route:
@route
main prosedark:prose-invertmax-w-none
ifcontent
div bg-gray-50dark:bg-gray-800p-4roundedborder
content
ifnot(content)
div text-gray-500dark:text-gray-400italic
No content available for this page.
matchfilmmode: render-page
apply.
matchstylesheetsmode: render
html lang{$lang}
callfull-head
body bg-whitedark:bg-blacktext-blackdark:text-whiteleading-tighth-screenoverflow-hidden
div h-fullflex
apply/contextin mode hackbar-container
div #main-content flex-1bg-whitedark:bg-slate-800overflow-y-autop-4
div @containerborderborder-gray-200dark:border-gray-700shadow-lgdark:bg-blackp-6
div prosedark:prose-invertmax-w-none
h1 text-3xlfont-boldmb-6
XSL Stylesheets Documentation
p text-lgmb-8
Browse the XSLT source code and documentation for the BSD system.
div gridgap-4
$container←.
for eachstylesheet
$sheet←.
$primary-lang←
whenroute[@lang=$lang]
$lang
otherwise
route[1]/@lang
$primary-href←concat($container/route[@lang=$primary-lang]/@path, $sheet/route[@lang=$primary-lang]/@path)
div borderborder-gray-200dark:border-gray-700rounded-lgp-4hover:bg-gray-50dark:hover:bg-gray-800
h3 text-xlfont-semiboldmb-2
a href{$primary-href} text-blue-600dark:text-blue-400hover:underline
@title
p text-smtext-gray-600dark:text-gray-400
code
@src
div mt-2flexgap-2
for eachroute
$href←concat($container/route[@lang=current()/@lang]/@path, @path)
a href{$href}
class←
"text-sm px-2 py-1 rounded "
@lang
when@lang='lv'
otherwise
matchstylesheetmode: render
apply.in mode render-page
matchstylesheetmode: render-page
$xsl-doc←document(concat('../../', @src))
when$xsl-doc
html lang{$lang}
callfull-head
body bg-whitedark:bg-blacktext-blackdark:text-whiteleading-tighth-screenoverflow-hidden
div h-fullflex
apply/contextin mode hackbar-container
div #main-content flex-1bg-whitedark:bg-slate-800overflow-y-autop-4
div @containerborderborder-gray-200dark:border-gray-700shadow-lgdark:bg-blackp-6
div mb-4
a href{../route[@lang=$lang]/@path} text-blue-600dark:text-blue-400hover:underline
← Back to stylesheets index
apply$xsl-doc
otherwise
html lang{$lang}
callfull-head
body bg-whitedark:bg-blacktext-blackdark:text-whiteleading-tighth-screenoverflow-hidden
div h-fullflex
apply/contextin mode hackbar-container
div #main-content flex-1bg-whitedark:bg-slate-800overflow-y-autop-4
div @containerborderborder-gray-200dark:border-gray-700shadow-lgdark:bg-blackp-6
div p-4bg-red-100dark:bg-red-900text-red-800dark:text-red-200rounded
h2 text-xlfont-boldmb-2
Error Loading Stylesheet
p
Could not load stylesheet:
code
@src
p text-smmt-2
Title:
@title