Themes & Plugins

1 min read July 28, 2016 at 9:50am on Getting Started


Leafpub templates are built with a simple but powerful template system called Handlebars. If you've never used Handlebars before, you're in for a treat.

Handlebar templates are easy to create and don't require any PHP programming whatsoever.

The easiest way to get started is to open the .hbs files in content/themes/range and play around with them. They're just HTML files with {{placeholders}}, so it won't be long before you're building your own themes. For more info about themes, check out these posts.

Tip: You might need to configure your text editor to open .hbs files.


Plugins are able to extend Leafpub in many ways. 
They can be a middleware or subscribe to any Leafpub event that gets fired.
It's also possible to define own routes and create new endpoints.

For more infos visit the docs section.


Let me know how you'd like to extend Leafpub by tweeting to @leafpub!