Skip to content

Instantly share code, notes, and snippets.

@innabelaya
Last active January 10, 2018 14:24
Show Gist options
  • Save innabelaya/837a96299de6fd488223 to your computer and use it in GitHub Desktop.
Save innabelaya/837a96299de6fd488223 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'},
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