Releases: foundation/panini
v1.7.1
v1.7.0
- Updated dependencies
- Updated project branding and urls
Version 1.6.2
Update marked
(0.3.6
-> 0.3.14
) to resolve Security Vulnerability 2017-17461
Version 1.6.1
Throw an exception if there's an error in compiling a layout, instead of just logging to the console. Thanks @kazagkazag!
Version 1.6.0
Updated the markdown
helper to output highlighted code in the same style as the code
helper. Thanks @gormus!
Version 1.5.1
Fixed issue #132, which was introduced with the addition of BOM stripping in version 1.5.0.
Version 1.5.0
- Added an
@index
variable that can be used within the#repeat
helper. It starts at 0 and increments on each repeat. - Fixed only top-level files within a
data/
folder being loaded. Files within subfolders will now load also. - Fixed a caching issue that would prevent JSON-based data from being updated within templates when saved.
- Strip the byte order mark from pages and partials.
- Partials no longer have a newline added to them when loaded into Handlebars.
Thanks to @Thumbleweed, @asselinpaul, and @FracturedShader for their contributions to this release ❤️
Version 1.4.0
- Data files can be written as Node modules. Thanks @Mandrewdarts!
- Added a CLI tool. Install it with
npm i panini -g
. - Updated dependencies.
Version 1.3.0
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.
Version 1.2.0
- Panini has a full test suite now!
- Using a standalone instance of Panini is now easier, as the
Panini.render()
function can be used standalone. - Layouts, partials, helpers, and data can now be configured as an array of file paths instead of a single file path.
- Added a
pageLayouts
option which allows pages to have preset layouts by folder.
Special thanks to @avr for contributing code this release!