Skip to content

Instantly share code, notes, and snippets.

@d4tocchini
Created August 15, 2012 00:11
Show Gist options
  • Save d4tocchini/3354133 to your computer and use it in GitHub Desktop.
Save d4tocchini/3354133 to your computer and use it in GitHub Desktop.
{{view Th.PageLayout id="home-page-layout" pageTemplates="[pageA,pageB]" contentBinding="App.homeTiles"}}
pageA =
name: 'pageA'
contentInlets: [
query:
strength: 'require'
method: 'next'
params: {type:'story', featured:true}
contentKey: 'story1'
clone: false
,
query:
strength: 'require'
method: 'next'
params: {type:'story', featured:true}
contentKey: 'story2'
clone: false
]
template: G.template """
{{view App.Tile id="story1TEST" contentBinding="view.content.story1"}}
{{view App.Tile id="story2TEST" contentBinding="view.content.story2"}}
"""
pageB =
name: 'pageB'
contentInlets: [
query:
strength: 'require'
method: 'next'
params: {type:'story'}
contentKey: 'story1'
clone: false
,
query:
strength: 'require'
method: 'next'
params: {type:'image'}
contentKey: 'image1'
clone: false
]
template: G.template """
{{view App.Tile contentBinding="view.content.story1"}}
{{view App.Tile contentBinding="view.content.image1"}}
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment