initi.doc/templates/initi/tmpl/mainpage.tmpl
2018-09-26 18:13:03 +03:00

20 lines
347 B
Cheetah

<?js
var data = obj;
var self = this;
console.log(self.content)
?>
<?js= self.partial('mainpage/each.tmpl', self.content) ?>
<?js if (data.kind === 'package') { ?>
<h3><?js= data.name ?> <?js= data.version ?></h3>
<?js } ?>
<?js if (data.readme) { ?>
<section>
<article><?js= data.readme ?></article>
</section>
<?js } ?>