A super simple flat file generator.
Update marked
(0.3.6
-> 0.3.14
) to resolve Security Vulnerability 2017-17461
Throw an exception if there's an error in compiling a layout, instead of just logging to the console. Thanks @kazagkazag!
Updated the markdown
helper to output highlighted code in the same style as the code
helper. Thanks @gormus!
Fixed issue #132, which was introduced with the addition of BOM stripping in version 1.5.0.
@index
variable that can be used within the #repeat
helper. It starts at 0 and increments on each repeat.data/
folder being loaded. Files within subfolders will now load also.Thanks to @Thumbleweed, @asselinpaul, and @FracturedShader for their contributions to this release ❤️
npm i panini -g
.Upgraded from Handlebars 3 to 4! Your existing templates will work fine. Handlebars 4 brings two interesting new features: inline partials and decorators. SitePoint has a good overview of what's up.
Panini.render()
function can be used standalone.pageLayouts
option which allows pages to have preset layouts by folder.Special thanks to @avr for contributing code this release!