Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

2.0.0 – Composer install, config fixes

Choose a tag to compare

@fvsch fvsch released this 15 Oct 16:33

Important: the option names have changed in this release!

BREAKING:

  • The main option for activating the plugin is just c::set('staticbuilder', true);.
  • Other options have been renamed from 'plugin.staticbuilder.*' to 'staticbuilder.*'.
  • Renamed options: filename->extension, pagefiles->withfiles.
  • The namespace was changed from Kirby\Plugin\StaticBuilder to Kirby\StaticBuilder.

New:

  • This plugin can now be installed with Composer, yay \o/
  • Kirby Modules folders are excluded by default (since they’re not pages).
  • When filtering which pages should be build (using the 'staticbuilder.filter' option), you can use this method to reuse the plugin’s default filter (which excludes empty directories and directories containing modules only): Kirby\StaticBuilder\Builder::defaultFilter($page).
  • It’s now possible to filter which page files (files from the page’s folder) should be copied over, when using the related option.
  • The STATIC_BUILD constant can be used to determine if we’re executing a controller or template from StaticBuilder. If StaticBuilder is building this page, this constant will be defined.
  • Bug fixes :D