-
<|| if? and? [1=size W\returns][W\returns\0=:nothing] [ ||>
- :nothing <|| ] else [ ||> <|| loop W\returns 'ret [||>
- <||= (ret=:nothing)? -> "or " -> "" ||>:<||= ret ||> <||]||> <|| ] ||>
<||= importPartial "components/sidebar.html" ||>
<||= importPartial "components/breadcrumbs.html" ||>
<||= if key? W 'alias [||>
<||]||>
<|| if W\type = :function [ ||>
<||= loop W\attributes [k,v][
types: join.with: ", " map filter v\types 'tp [tp = :logical] 'tp [":" ++ (to :string tp) ++ ""]
||>
<||]||>
<|| ] ||>
<|| if and? [W\type = :function] [not? empty? W\examples] [ ||>
<|| ] ||> <|| ] ||> <|| ] ||>
<||= W\name ||>
<||=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
| <||= k ||> | <||= types ||> | <||= v\description ||> |
Returns
Examples
<|| loop W\examples 'example [||><||= if example <> last W\examples [||>copy<||= example ||>
<|| ] ||> <|| ] ||> <|| ] ||>
Related
-
<||= loop W\related 'rel [||>
- <||= replace rel "/" " / " ||> <||]||>