<||= importPartial "components/head.html" ||> <||= importPartial "components/navbar.html" ||>
<||= importPartial "components/sidebar.html" ||>
<||= importPartial "components/breadcrumbs.html" ||> <|| if not? all? @[2 = size pagePath "documentation" = first pagePath "_index" = last pagePath] [ ||>

<||= switch contains? pagePath "library" ["Library"] [join.with:" " map split.words last pagePath 'x -> capitalize x] ||>

<|| ] ||> <||= switch key? W 'modules [ moduleList: join.with:"\n" map Data\libraryModules 'md [ ~{- [|to :string md|](|linkTo "documentation/library/"++(lower to :string md)|)} ] functionList: new [] symbolList: new [] loop Data\libraryFunctions [fn href][ 'functionList ++ ~{|fn|} ] loop Data\librarySymbols [fn nm href][ 'symbolList ++ ~{|replace replace fn "<" "<" ">" ">"|} ] functionList: new join.with:" ▪︎ " functionList symbolList: new join.with:{   } symbolList replace replace read.markdown replace replace replace replace replace replace W\content "#" "/" "Library-‣-" "" "%MODULE_LIST%" moduleList "%FUNCTION_LIST%" functionList "%SYMBOL_LIST%" symbolList "%FUNCTION_COUNT%" to :string (size Data\libraryFunctions) / 2 "
    " "" "
" "" ] [ switch "language" = last pagePath [ aliasList: new [] loop Data\librarySymbols [fn nm href][ 'aliasList ++ ~{|replace replace fn "<" "<" ">" ">"||nm|} ] aliasList: new join.with:"\n" aliasList replace replace read.markdown replace W\content "%ALIAS_LIST%" aliasList "
    " "" "
" "" ] [ replace replace read.markdown W\content "
    " "" "
" "" ] ] ||>
<||= importPartial "components/foot.html" ||>