diff options
Diffstat (limited to 'support/jsdoc/theme/tmpl/method.tmpl')
-rw-r--r-- | support/jsdoc/theme/tmpl/method.tmpl | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/support/jsdoc/theme/tmpl/method.tmpl b/support/jsdoc/theme/tmpl/method.tmpl index be60b8d..2cc0d80 100644 --- a/support/jsdoc/theme/tmpl/method.tmpl +++ b/support/jsdoc/theme/tmpl/method.tmpl @@ -45,6 +45,23 @@ var self = this; <?js= this.partial('params.tmpl', params) ?> <?js } ?> +<?js if (data.returns && returns.length) { ?> +<h5>Returns:</h5> +<?js if (returns.length > 1) { ?><ul><?js + returns.forEach(function(r) { ?> + <li><?js= self.partial('returns.tmpl', r) ?></li> + <?js }); +?></ul><?js } else { + returns.forEach(function(r) { ?> + <?js= self.partial('returns.tmpl', r) ?> + <?js }); +} } ?> + +<?js if (data.examples && examples.length) { ?> + <h5>Example<?js= examples.length > 1? 's':'' ?></h5> + <?js= this.partial('examples.tmpl', examples) ?> +<?js } ?> + <?js= this.partial('details.tmpl', data) ?> <?js if (data.kind !== 'module' && data.requires && data.requires.length) { ?> @@ -87,19 +104,4 @@ var self = this; <?js }); } } ?> -<?js if (data.returns && returns.length) { ?> -<h5>Returns:</h5> -<?js if (returns.length > 1) { ?><ul><?js - returns.forEach(function(r) { ?> - <li><?js= self.partial('returns.tmpl', r) ?></li> - <?js }); -?></ul><?js } else { - returns.forEach(function(r) { ?> - <?js= self.partial('returns.tmpl', r) ?> - <?js }); -} } ?> -<?js if (data.examples && examples.length) { ?> - <h5>Example<?js= examples.length > 1? 's':'' ?></h5> - <?js= this.partial('examples.tmpl', examples) ?> -<?js } ?> |