panini

A super simple flat file generator.

OTHER License

Downloads
28.2K
Stars
590
Committers
30

Bot releases are visible (Hide)

panini - v1.7.1 Latest Release

Published by joeworkman about 4 years ago

  • Fixes issues with markdown code highlights. The language will default to html.
  • Tests added for code highlighting when using markdown blocks
panini - v1.7.0

Published by joeworkman over 4 years ago

  • Updated dependencies
  • Updated project branding and urls
panini - Version 1.6.2

Published by ncoden over 6 years ago

Update marked (0.3.6 -> 0.3.14) to resolve Security Vulnerability 2017-17461

panini - Version 1.6.1

Published by gakimball over 6 years ago

Throw an exception if there's an error in compiling a layout, instead of just logging to the console. Thanks @kazagkazag!

panini - Version 1.6.0

Published by gakimball over 6 years ago

Updated the markdown helper to output highlighted code in the same style as the code helper. Thanks @gormus!

panini - Version 1.5.1

Published by gakimball over 7 years ago

Fixed issue #132, which was introduced with the addition of BOM stripping in version 1.5.0.

panini - Version 1.5.0

Published by gakimball over 7 years ago

  • 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 ❤️

panini - Version 1.4.0

Published by gakimball over 7 years ago

  • Data files can be written as Node modules. Thanks @Mandrewdarts!
  • Added a CLI tool. Install it with npm i panini -g.
  • Updated dependencies.
panini - Version 1.3.0

Published by gakimball over 8 years ago

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 - Version 1.2.0

Published by gakimball over 8 years ago

  • 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!

panini - Version 1.1.1

Published by gakimball almost 9 years ago

  • Output Handlebars errors to the console or the page instead of just crashing. Handy!
  • Fixed Handlebars helpers not being reloaded when Panini.refresh() is called.
  • Fixed the root Handlebars variable using the wrong slash on Windows.
  • Fixed an error that occurred if Panini.refresh() was called before the plugin is initialized.

Thanks to @ppowalowski for contributing two of these bug fixes!

panini - Version 1.1.0

Published by gakimball almost 9 years ago

  • Added a {{#ifequal}} block helper to compare two values.
  • Added a layout variable to the page that contains the name of the layout being used.
panini - Version 1.0.0

Published by gakimball almost 9 years ago

  • Adds a {{#code}} helper to highlight code samples with Highlight.js.
  • Adds a refresh() method to reload layouts, partials, helpers, and data after the first initialization.
panini - Version 1.0.0 RC1

Published by gakimball almost 9 years ago

  • Changed configuration settings to use directories instead of globs.
  • Added a required root setting that allows relative paths between pages and assets to be resolved.
  • Added a {{root}} Handlebars variable that generates a relative path to the root directory.
  • Added new Handlebars helpers:
    • {{#ifpage}} displays content only on a given page.
    • {{#unlesspage}} displays content unless on a given page.
    • {{#repeat}} repeats content n times.
    • {{#markdown}} converts Markdown to HTML.
panini - Version 0.1.1

Published by gakimball almost 9 years ago

Fixes Handlebars partials not registering.

panini - Version 0.1.0

Published by gakimball about 9 years ago

Initial release.

Package Rankings
Top 1.63% on Npmjs.org
Badges
Extracted from project README
Build Status npm version Dependency Status
Related Projects