<||= importPartial "components/head.html" ||> <||= importPartial "components/navbar.html" ||>
<||= importPartial "components/sidebar.html" ||>
<||= importPartial "components/breadcrumbs.html" ||>

<||= W\name ||>

<||= if key? W 'alias [||>

<||=W\alias||>

<||]||>

<||=W\description ||>


<|| if W\type = :function [ ||>

Parameters

<||=W\name||> <||= 
                            funcParams: new [] 
                            loop W\arguments [k,v] [ 
                                funcParam: new ~"|k| " 
                                'funcParam ++ join.with:" " map v 'vv [":" ++ (to :string vv)] 
                                'funcParams ++ funcParam
                            ] 
                            join.with:"\n"++repeat " " (size W\name)+1 funcParams
                        ||>
<||= if not? empty? W\attributes [||>

Attributes

<||= loop W\attributes [k,v][ types: join.with: ", " map filter v\types 'tp [tp = :logical] 'tp [":" ++ (to :string tp) ++ ""] ||> <||]||>
<||= k ||> <||= types ||> <||= v\description ||>
<||]||> <|| ] ||>

Returns

    <|| if? and? [1=size W\returns][W\returns\0=:nothing] [ ||>
  • :nothing
  • <|| ] else [ ||> <|| loop W\returns 'ret [||>
  • <||= (ret=:nothing)? -> "or  " -> "" ||>:<||= ret ||>
  • <||]||> <|| ] ||>
<|| if and? [W\type = :function] [not? empty? W\examples] [ ||>

Examples

<|| loop W\examples 'example [||>
copy
<||= example ||>
<||= if example <> last W\examples [||>
<|| ] ||> <|| ] ||> <|| ] ||>

Related

<||= importPartial "components/foot.html" ||>