1.6.0
Noteworthy Changes
- add method Model\Page::getRawContent() #242
- change default markdown tab width to 4 spaces1 #232/#233
- improve ErrorHandler\Development #231
- fix routing if a base-URL path-part also exists in content-URL #245/#246
- setup-check is now performed in a plugin #247
- lazy load 'pages' template variable2 #256/#257
- include YAML parser for meta-data evaluation3 #259
- remove theme/default/style.css4 #237/#264
For other improvements and bugfixes see the full changelog.
Update Notes
1If you have code-blocks indented by less then 4 spaces in your existing markdown files you can set the parser configuration back to 2 spaces to restore the old behaviour (or update your markdown files accordingly).
3YAML makes meta-data much more powerful, but it's not fully compatible with the existing tag format. E.g. dates are converted to unix-timestamps (format dates in the template to make sure they're always in the desired format).
So the YAML parser is not activated by default yet. If you wan't to use it or test your site change the meta-data-parser config format
from Phile
to YAML
.
There's also one new composer dependency "symfony/yaml": "^2.7"
. So if you have installed Phile via composer don't forget to update the composer.json and run composer update.
4theme/default/style.css
was never used by Phile. But if you have accidentally picked up that file in your own code or templates please refer to theme/default/css/style.css
from now on.
Plugin/Dev Notes
After discussion #234 Phile strives to follow semver versioning. So the 1.6 API should be backwards-compatible to 1.5. If you encounter any problems when updating please submit an issue.
2Repositoryl\Page::findAll()
doesn't return a array anymore but a traversable object with array access. If you need a raw array straight away you can call $repository->findAll()->toArray()
.
Thanks
Thanks to everyone who contributed to this release!