Data Models
The templates receive a model object with the data and with some extra useful information.
How to tell how the model looks like in RAZOR template?
use @ObjectInfo.Print(Model); to create a dump of the Model
How to tell how the model looks like in HANDLEBARS (client side) template?
Investigate the result of the API call.
How to tell how the model looks like in HANDLEBARS (server side) template?
- Open "Edit Global Settings" of the module.
- Switch "Logging (Browser console)" on.
- Use your Browser Console (F12) to inspect the JSON object (look for "Render template")
Updated about 7 years ago