You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `url` attribute is mandatory. It shows under which path output html file will be saved. If you want to save in some specific folder, you can do it by providing the following value for `url` attribute:
34
+
The `url` attribute is mandatory. It shows under which path output html file will be saved. If you want to save it in some specific folder, you can do it by providing the following value for `url` attribute:
The `template` attribute is mandatory. It shows which template should be used to render current page. For now only flat structure is supported, so you can reference templates only from root of `Layout` folder.
43
43
44
-
You can use other synonimous for `template` attribute which are `TemplateId`, `Layout`, `LayoutId`. All those synonymous are caseinsensitive.
44
+
You can use other synonims for `template` attribute which are `TemplateId`, `Layout`, `LayoutId`. All those synonyms are case-insensitive.
45
45
46
46
> More details about templates / layouts can be found in the dedicated [layout](/folders-structure/layout.html) section.
47
47
@@ -58,12 +58,12 @@ If predefined attributes are not enough and you want to add some extra attribute
58
58
59
59
### Data model
60
60
61
-
In case you want to use the same template, but use different data for it you can use page data model. The scenario here is to have different data (in terms of value) with the same structure on different pages. The name of page data model should start with `model` followed by `.`. After that you should add at least one character that will represent the name of your data model. The value of `model` should always point to valid `data` object.
61
+
In case you want to use the same template, but use different data for it, you can use page data model. The scenario here is to have different data (in terms of values) with the same structure on different pages. The name of page data model should start with `model` followed by `.`. After that you should add at least one character that will represent the name of your data model. The value of `model` should always point to valid `data` object.
62
62
63
63
> More advanced details about how to work with data can be found in [page data model](/folders-structure/pages/model.html) section.
64
64
65
65
### Custom attributes vs data model
66
66
67
-
The main difference between custom attributes and data model is how they interpreter the values you provide.
68
-
-**Custom attributes** always threat all the values like strings.
69
-
-**Data model** always threat all the values like reference to global `Data` model. It will copy all the values from referenced `Data` object to current `Model` object.
67
+
The main difference between custom attributes and data model is how they interprete the values you provide.
68
+
-**Custom attributes** always treat all the values as strings.
69
+
-**Data model** always treats all the values as references to global `Data` model. It will copy all the values from referenced `Data` object to current `Model` object.
0 commit comments