Skip to content

Version 0.2.0 Alpha 1

Pre-release
Pre-release
Compare
Choose a tag to compare
@allejo allejo released this 01 Jul 00:14
· 193 commits to master since this release
791f3ea

The first alpha tag of the next major release of stakx with a rebuilt core, Scss support, and Twig improvements.

Deprecations

  • The watch command has been removed
  • The --no-conf flag has been removed; all sites now need a configuration file

New

  • FrontMatter now has "complex variables," meaning you can inject variables from your site's configuration file into any FM block
  • The select, order, where, and group Twig filters have support for dot notation to access nested data in arrays
  • Make use Symfony's Event Dispatcher throughout our core to dispatch events for core and possibly third-party plugins
  • Add Scss and source map support in a _sass folder

Change

  • The "working directory" of websites is now relative to the given configuration file
  • Dynamic PageViews are no longer accessible through Twig

Fixes

  • Twig files through {% include %} are now treated as dependencies for the watch functionality
  • The summary and toc Twig filters now better support HTML5 and are more robust
  • The basename and filename variables are available in FrontMatter

Development

  • A lot of restructuring and moving of namespaces
  • All references to files are now handled by a dedicated File object
  • Add Symfony container, which will autowrite classes and support dependency injection
  • Use the official highlight.php library again, which is now maintained again
  • Templating has been abstracted out into interfaces; a new Twig to stakx bridge has been created
  • Updated to Symfony 3.4.x components
  • Abstracted out data transformers into separate classes with an interface for DataItems
  • Twig filters and functions are now handled through the container
  • Improved cross-platform support for file paths used internally
  • Markup engines have been abstracted out into interfaces and separate classes
  • Standardized filesystem reads and writes throughout core
  • The internal Service singleton uses bitwise flags instead of an array of arbitrary keys