You can copy the yaml-code below and use it as frontmatter for an example page.
You can paste this URL into github issues to order to share your setup when filing bugs or questions
Handlebars:
Template
{{lookupOrDefault this 'firstname' 'Name not found'}}
Preparation-Script
Handlebars.registerHelper('lookupOrDefault', function (object, propertyName, defaultValue, options) {
var result = options.lookupProperty(object, propertyName)
if (result != null) {
return result
}
return defaultValue
})
Input
{ firstname: "Yehuda" }
Output
Yehuda