initi.doc/templates/initi/tmpl/mainpage/part.tmpl

18 lines
445 B
Cheetah
Raw Normal View History

2018-09-26 15:13:03 +00:00
<?js
var part = obj;
var self = this;
//console.log(part);
?>
<?js if(part.description) { ?>
<div class="description part bdotted"><?js= self.replace_enters_to_br(part.description) ?></div>
<?js } ?>
<?js if (part.examples && part.examples.length) { ?>
<div class="params-desc params-example bdotted part">
<div class="title">Examples: </div>
<?js= self.partial('examples.tmpl', part.examples) ?>
</div>
<?js } ?>