Section Bindings

Section bindings are placed in the name of a section and have a parameter that replaces the binding in the generated template.

Using section bindings enables, among other things, repeating slides or controlling the visibility of slides in the presentation.

This sub-section contains articles describing the respective section binding types.

Binding syntax

Section bindings can be defined for single slides with a closed binding tag and for multiple slides with open tags, which is called nested bindings.

A single section binding, with closed tags, looks like following (also see example to the left):

<<BindingType:Parameters>>

and a nested section binding, with open tags, looks like this:

<<BindingType:Path>...<BindingType>>

Below example shows two nested sections, <<Repeat:properties>...<Repeat>> and <<Repeat:floors><Repeat>>. This example has an nested section with the path properties which has another nested section inside with the path floors. This section has three single bindings inside, two Visible and one normal Repeat. The two nested Repeat bindings are closed with the <Repeat>> closing tags in the end. Note that there has be a section inside the nested repeater, for repeating. E.g. “Properties” and “Floors” like in the example below.

Note that currently the only binding type supported for nested sections is Repeat.

The data for nested sections also needs to be nested. An example to match above screenshot could look like this:

{
    "properties": [
        //nested level #1 - <<Repeat:properties>...<Repeat>>
        { 
            "propertyName": "House of Meadows",
            "floors": [
                //nested level #2 - <<Repeat:floors>...<Repeat>>
                {
                    "floorName": "HoM Level A",
                    "cardAccess": false,
                    "petsAllowed": true,
                    "suites": [
                        {
                            "suiteName": "HoM Level A Suite 1",
                            "suiteStandard": "A1"
                        },
                        {
                            "suiteName": "HoM Level A Suite 2",
                            "suiteStandard": "A2"
                        }
                    ]
                },
                {
                    "floorName": "HoM Level B",
                    "cardAccess": false,
                    "petsAllowed": true,
                    "suites": [
                        {
                            "suiteName": "HoM Level B Suite 1",
                            "suiteStandard": "B1"
                        },
                        {
                            "suiteName": "HoM Level B Suite 2",
                            "suiteStandard": "B2"
                        }
                    ]
                }
            ]
        },
        {
            "propertyName": "House of Cards",
            "floors": [
                //nested level #2 - <<Repeat:floors>...<Repeat>>
                {
                    "floorName": "HoC Level A",
                    "cardAccess": true,
                    "petsAllowed": false,
                    "suites": [
                        {
                            "suiteName": "HoC Level A Suite 1",
                            "suiteStandard": "A1"
                        },
                        {
                            "suiteName": "HoC Level D Suite 2",
                            "suiteStandard": "A2"
                        }
                    ]
                },
                {
                    "floorName": "HoC Level B",
                    "cardAccess": true,
                    "petsAllowed": false,
                    "suites": [
                        {
                            "suiteName": "HoC Level B Suite 1",
                            "suiteStandard": "B1"
                        },
                        {
                            "suiteName": "HoC Level B Suite 2",
                            "suiteStandard": "B2"
                        }
                    ]
                }
            ]
        }
    ]
}