View Page

Remember to check out the documentation for restdb.io Pages and for restdb.io Querying. You can also view the master template source code.

<!-- load data labels from the settings collection -->
{{#context}}
{
  "settings":{
        "collection": "settings",
        "query":{},
        "as":{
            "type":"map",
            "key":"name"
        }
  }
}
{{/context}}

<!-- use the master page "layout" for this page -->
{{#inherit "layout"}}
    {{#block "title"}}
        <!-- get title text from settings collection -->
        <h1>{{settings.[about-title].textvalue}}</h1>
    {{/block}}
    
    {{#block "content"}}
        <!-- get body html from settings collection -->
        {{{settings.[about-body].htmlvalue}}}
        
    {{/block}}
    
    {{#block "sidebar"}}
        {{include "contact-partial"}}
    {{/block}}
    
    
{{/inherit}}