initi.doc/templates/initi/tmpl/full_method/main.tmpl

37 lines
1.5 KiB
Cheetah
Raw Normal View History

2018-09-20 08:51:19 +00:00
<?js
var method = obj;
var self = this;
var ryba = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupimethodt non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
//console.log(JSON.stringify(method, true, 3))
?>
<div class="full-method bdotted part" id="<?js= method.id ?>">
<div class="title"><span><?js= method.name ?></span></div>
<?js if(method.description) { ?>
<div class="description part bdotted"><?js= self.replace_enters_to_br(method.description) ?></div>
2018-09-20 08:51:19 +00:00
<?js } ?>
<div class="short bdotted part">
<span class="access">(<?js= method.access ?>)</span>
<span class="name"><?js= method.name ?></span>
<?js= self.partial('full_method/params_compact.tmpl', method.params) ?>
</div>
<?js if(method.params) { ?>
<div class="params-desc bdotted part">
<div class="title">Params</div>
<?js= self.partial('full_method/params_full.tmpl', method.params) ?>
</div>
<?js } ?>
2018-09-20 10:09:49 +00:00
<?js if(method.returns) { ?>
<div class="params-desc bdotted part">
<div class="title">Returns</div>
<?js= self.partial('full_method/returns_full.tmpl', method.returns) ?>
</div>
<?js } ?>
2018-09-20 08:51:19 +00:00
</div>