Release v0.085

Tags:

In this release:

  • Added the "dom" attribute to Statocles::Page. This caches the parsed HTML for the multiple transformations that must be performed. Hopefully this will speed up performance a little bit.

  • Added JSON frontmatter support. Now if the first character of a document is a {, the frontmatter will be treated as JSON. JSON can be a single line (the } end bracket must be at the end of the line) or multiple lines (the } end bracket must be on a line by itself).

More information about Statocles v0.085 on MetaCPAN

Release v0.084

Tags:

Just a small change in this release that makes it easier to add your own behaviors to the Statocles::Store object.

In this release:

Added

  • The Store object now has a "files" method which gets the iterator over all the files in the store. This can then be easily overridden to get the list of files from another place: The configuration file, a manifest file, a database, or what-have-you. Thanks @djerius for the patch!

Release v0.083

Tags:

A couple additions to this release: A new status command, and a new -raw flag to disable the template rendering when using the include helper.

Added

  • The new statocles status command shows you a quick status of your site, including the last time it was deployed and what date it was deployed up to (if different from the last date it was deployed). We will be adding more things to this later, so let us know if there are any statistics you'd like to know about your site! Thanks @perlancar [Github #516]

  • The include helper now accepts a -raw flag to disable the template renderer. This allows you to easily include Perl code and not have it mistaken for a template. Thanks justinQuiring on IRC for the bug report [Github #529]

    This isn't the end of this: We will likely fix the heuristics to ignore file types (extensions) that do not look like templates. This will be a breaking change, sorry.