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

25 lines
755 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="params-desc params-example bdotted part">
<div class="title">Examples: </div>
<?js= self.partial('examples.tmpl', part.examples) ?>
</div>
<?js } ?>
</div>