Skip to content

Instantly share code, notes, and snippets.

@innabelaya
Created November 16, 2017 14:32
Show Gist options
  • Save innabelaya/b52a83c7860355f6d5ec9877517439af to your computer and use it in GitHub Desktop.
Save innabelaya/b52a83c7860355f6d5ec9877517439af to your computer and use it in GitHub Desktop.
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: [
{
block: 'head',
content: {
block: 'layout',
content: [
{
elem: 'left',
content: {
tag: 'form',
attrs: { action: 'http://yandex.ru/yandsearch' },
content: [
{
block: 'input',
name: 'text',
val: 'Find'
},
{
block: 'button',
mods: { type: 'submit' },
content: 'Search'
}
]
}
},
{
elem: 'right',
content: {
block: 'logo',
content: [
{
block: 'link',
url: 'http://ru.bem.info',
content: [
{
block: 'image',
url: 'http://varya.me/online-shop-dummy/desktop.blocks/b-logo/b-logo.png'
},
{
elem: 'slogan',
content: 'A new way of thinking'
}
]
}
]
}
}
]
}
}
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment