The mechanism for the {{!< default}} syntax in index.hbs

#1

I’m exploring the templating setup of casper theme. I’ve stumbled upon this syntax:

{{!< default}}
{{!-- The tag above means: insert everything in this file
into the {body} of the default.hbs template --}}

Where can I read about this mechanism? I haven’t found anything on it on handlebars or express-handlebars docs.

Although from the comment it’s clear how it works, I’m wondering where and how it’s implemented because it seems to be different to regular partials mechanism that define child templates to be inserted into the current template rather than the parent template into which the current template should be inserted. Is it something implemented by Ghost engine? It’s weird because for the URL / Ghost renders index.hbs, so this syntax represents a reverse dependency.

#2

You’re looking at the wrong library :wink:

#3

Hm, interesting, thanks. So it seems there are two libraries with very similar functionality, right? The do you maybe know why Ghost uses express-hbs over express-handlebars?