2014-02-12 19:42:09 -05:00
|
|
|
h4
|
|
|
|
span= doc.shortName
|
|
|
|
| -
|
|
|
|
code.prop-type= doc.type == 'function' && doc.owner == 'this' ? 'method' : doc.type
|
|
|
|
if doc.type != 'function'
|
|
|
|
| (read-only)
|
|
|
|
|
2014-02-12 21:54:45 -05:00
|
|
|
.description!= marked(doc.description || 'Still undocumented, sorry.')
|
2014-02-12 19:42:09 -05:00
|
|
|
|
2014-02-12 21:54:45 -05:00
|
|
|
if doc.example
|
|
|
|
p.example
|
|
|
|
strong Example:
|
|
|
|
div!= marked("```\n" + doc.example + "```")
|
|
|
|
else if doc.type == 'function'
|
2014-02-12 19:42:09 -05:00
|
|
|
p.example
|
|
|
|
strong Example:
|
|
|
|
div
|
|
|
|
code= doc.owner + '.' + doc.name + '(' + argumentExamples.join(', ') + ');'
|
2014-02-12 21:54:45 -05:00
|
|
|
|
|
|
|
if doc.type != 'function' && doc.type != 'snippet'
|
2014-02-12 19:42:09 -05:00
|
|
|
p.value
|
|
|
|
strong Current Value:
|
|
|
|
code.current-value(data-prop=doc.name)= value
|
|
|
|
|
|
|
|
if doc.args && doc.args.length
|
|
|
|
p.args
|
|
|
|
strong Parameters:
|
|
|
|
for arg in doc.args
|
|
|
|
div
|
|
|
|
code= arg.name
|
|
|
|
| :
|
|
|
|
code= arg.type
|
|
|
|
if arg.example
|
|
|
|
| (ex:
|
|
|
|
code= arg.example
|
|
|
|
| )
|
|
|
|
if arg.description
|
2014-02-12 21:54:45 -05:00
|
|
|
div!= marked(arg.description)
|
2014-02-12 19:42:09 -05:00
|
|
|
if arg.default
|
|
|
|
div
|
|
|
|
em Default value:
|
|
|
|
code= arg.default
|
2014-02-12 21:54:45 -05:00
|
|
|
|