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

44 lines
1.8 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) { ?>
2018-10-10 11:00:35 +00:00
<div class="desc 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 ? method.access : method.scope) ?>)</span>
2018-09-20 08:51:19 +00:00
<span class="name"><?js= method.name ?></span>
<?js= self.partial('full_method/params_compact.tmpl', method.params) ?>
</div>
<?js if (method.examples && method.examples.length) { ?>
2018-10-10 11:00:35 +00:00
<div class="desc params-example bdotted part">
<div class="title">Examples: </div>
<?js= self.partial('examples.tmpl', method.examples) ?>
</div>
<?js } ?>
2018-09-20 08:51:19 +00:00
<?js if(method.params) { ?>
2018-10-10 11:00:35 +00:00
<div class="desc bdotted part">
2018-09-20 08:51:19 +00:00
<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) { ?>
2018-10-10 11:00:35 +00:00
<div class="desc bdotted part">
2018-09-20 10:09:49 +00:00
<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>