Last active
January 6, 2016 02:55
-
-
Save cefn/2ed1ef451328c4ceb97d to your computer and use it in GitHub Desktop.
Reference syntax for topic tree binding to a fixed template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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