Additional binding variables are provided for the following builders. The instances named below are available for use in all scripts. Builders use a special syntax to create a structured tree of data (in this case, content in the JCR).
nodeBuilder.etc {
satirists("sling:Folder") {
bierce(firstName: "Ambrose", lastName: "Bierce", birthDate: Calendar.instance.updated(year: 1842, month: 5, date: 24))
mencken(firstName: "H.L.", lastName: "Mencken", birthDate: Calendar.instance.updated(year: 1880, month: 8, date: 12))
other("sling:Folder", "jcr:title": "Other")
}
}
pageBuilder.content {
beer {
styles("Styles") {
"jcr:content"("jcr:lastModifiedBy": "me", "jcr:lastModified": Calendar.instance) {
data("sling:Folder")
}
dubbel("Dubbel")
tripel("Tripel")
saison("Saison")
}
breweries("Breweries", "jcr:lastModifiedBy": "me", "jcr:lastModified": Calendar.instance)
}
}