Skip to content

Instantly share code, notes, and snippets.

@jiggliemon
Last active December 14, 2015 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jiggliemon/5117797 to your computer and use it in GitHub Desktop.
Save jiggliemon/5117797 to your computer and use it in GitHub Desktop.
{
"name": "block.name"
,"type": "core/text"
,"blocks": [
{"name": "some.block","type": "core/list"}
,{"name": "some.nested.block","type": "core/text"}
]
}
[{
"reference": {
"block.name":[
{"addClass": ["block.name"]}
,{"removeChild": ["some.block"]}
,{"blocks":[
{"name":"something.new","type":"core/text","template":"path/to/template.tmpl"}
]}
]
}
,"blocks": [
{"name": "new.block","type": "core/text"}
]
}]
@jiggliemon
Copy link
Author

  • If there's a name, create a new block
  • create each

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment