Skip to content

Instantly share code, notes, and snippets.

@innabelaya
Last active March 24, 2018 15:33
Show Gist options
  • Save innabelaya/045ddfb063af3b262182 to your computer and use it in GitHub Desktop.
Save innabelaya/045ddfb063af3b262182 to your computer and use it in GitHub Desktop.
({
block : 'page',
title : 'hello',
head : [
{ elem : 'css', url : 'hello.min.css' }
],
scripts : [{ elem : 'js', url : 'hello.min.js' }],
mods : { theme : 'islands' },
content : [
{
block : 'hello',
content : [
{
elem : 'greeting',
content : 'Hello %user%!'
},
{
block : 'input',
mods : { theme : 'islands', size : 'm' },
mix : { block : 'hello', elem : 'input' }, // подмешиваем элемент для добавления CSS-правил
name : 'name',
placeholder : 'User name'
},
{
block : 'button',
mods : { theme : 'islands', size : 'm', type : 'submit' },
text : 'Click'
}
]
}
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment