Skip to content

Instantly share code, notes, and snippets.

({
shouldDeps: [
{ block: 'link' }
]
})
.goods
{
text-justify: distribute-all-lines;
}
.goods__item
{
display: inline;
zoom: 1;
.goods
{
margin: 20px 0;
padding: 0;
list-style: none;
text-align: justify;
}
.goods:after
block('goods')(
tag()('ul'),
content()(function() {
return this.ctx.goods.map(function(item){
return [
{
elem: 'item',
mods: { new: item.new ? 'yes' : undefined },
block('goods')(
tag()('ul'),
content()(function() {
return this.ctx.goods.map(function(item){
return [
{
elem: 'item',
content: [
block('goods')(
tag()('ul'),
content()(function() {
return this.ctx.goods.map(function(item){
return [
{
elem: 'item',
content: [
({
block: 'page',
title: 'Title of the page',
favicon: '/favicon.ico',
head: [
{ elem: 'meta', attrs: { name: 'description', content: '' }},
{ elem: 'css', url: '_index.css' }
],
scripts: [{ elem: 'js', url: '_index.js' }],
content: [
block('icon')(
tag()('img'),
attrs()(
{ src: this.ctx.url }
)
)
({
block: 'page',
title: 'Title of the page',
favicon: '/favicon.ico',
head: [
{ elem: 'css', url: '_index.css', ie: false },
{ elem: 'css', url: '_index.ie.css', ie: 'gte IE 6' },
{ elem: 'meta', attrs: { name: 'description', content: '' }}
],
content:[
module.exports = {
block: 'page',
title: 'Title of the page',
favicon: '/favicon.ico',
head: [
{ elem: 'meta', attrs: { name: 'description', content: '' }},
{ elem: 'css', url: 'index.min.css' }
],
scripts: [{ elem: 'js', url: 'index.min.js' }],
content: [