Name of custom post template as body class

Hi there,

I’m trying to access the name of the custom post template in use on a post page, and append it to my element as a class. I can’t for the life of me figure out how to do this, and documentation on custom post templates is very scarce.

So the desired output would be:

I’ve tried {{post.template}}, but this doesn’t output anything.


Ghost Version: Latest, updated
Happy to supply installation about node, etc but not sure its needed here

Does {{post.custom_template}} work?

That’s it! Thank you @kevin. I so appreciate it.

On a related note: are these sorts of things documented anywhere? Where can I go to find out how to reference specific objects in the ghost ecosystem? The docs are so light, and usually only have an example or two, rather than exhaustive lists.