Skip to content

Instantly share code, notes, and snippets.

@cefn
Last active January 6, 2016 02:55
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 cefn/2ed1ef451328c4ceb97d to your computer and use it in GitHub Desktop.
Save cefn/2ed1ef451328c4ceb97d to your computer and use it in GitHub Desktop.
Reference syntax for topic tree binding to a fixed template
var albumBinder =
pivot("album", ".album",
pivot("*", ".song",
pivot("verses/*", ".verse",
pivot("*", ".line", function(topic, control){
return screenplay.bindLeaf(tree, topic, control);
})
)
)
);
albumBinder(getRootTopic(), albumTemplate);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment