initi.doc/templates/initi/tmpl/mainpage/part.tmpl
2018-10-10 14:00:35 +03:00

25 lines
748 B
Cheetah

<?js
var part = obj;
var self = this;
//console.log(part);
?>
<div class="mainpage">
<?js if(part.description) { ?>
<div class="part bdotted">
<div class="desc"><?js= self.replace_enters_to_br(part.description) ?></div>
<?js part.examples && part.examples.forEach(function(_example){ ?>
<pre class="prettyprint"><code><?js= self.htmlsafe(_example.code) ?></code></pre>
<?js }); ?>
</div>
<?js } ?>
<?js if (false && part.examples && part.examples.length) { ?>
<div class="desc params-example bdotted part">
<div class="title">Examples: </div>
<?js= self.partial('examples.tmpl', part.examples) ?>
</div>
<?js } ?>
</div>