2018-09-26 15:13:03 +00:00
|
|
|
<?js
|
|
|
|
var part = obj;
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
//console.log(part);
|
|
|
|
?>
|
2018-10-01 07:40:56 +00:00
|
|
|
<div class="mainpage">
|
|
|
|
<?js if(part.description) { ?>
|
|
|
|
<div class="part bdotted">
|
|
|
|
<div class="desc"><?js= self.replace_enters_to_br(part.description) ?></div>
|
2018-09-26 15:13:03 +00:00
|
|
|
|
2018-10-01 07:40:56 +00:00
|
|
|
<?js part.examples && part.examples.forEach(function(_example){ ?>
|
|
|
|
<pre class="prettyprint"><code><?js= self.htmlsafe(_example.code) ?></code></pre>
|
|
|
|
<?js }); ?>
|
|
|
|
</div>
|
|
|
|
<?js } ?>
|
2018-09-26 15:13:03 +00:00
|
|
|
|
2018-10-01 07:40:56 +00:00
|
|
|
<?js if (false && part.examples && part.examples.length) { ?>
|
2018-10-10 11:00:35 +00:00
|
|
|
<div class="desc params-example bdotted part">
|
2018-10-01 07:40:56 +00:00
|
|
|
<div class="title">Examples: </div>
|
|
|
|
<?js= self.partial('examples.tmpl', part.examples) ?>
|
|
|
|
</div>
|
|
|
|
<?js } ?>
|
|
|
|
</div>
|