This is the changelog for PieCrust.
The first section deals with the latest changes in the development branch
(default
in Mercurial, master
in Git).
The second section deals with changes in the stable branch (stable
in
Mercurial, git-stable
in Git), but those changes are also included in the
development branch (the development branch is ahead of the stable branch).
- MINOR: Removed a call to a PHP 5.3.6-only method to prevent raising the minimum required version to run PieCrust.
- BUG: Fixed a bug with the
hierarchy
file-system when several posts are created on the same day.
- NEW: The full list of posts is exposed through
blog.posts
(if you have multiple blogs, replaceblog
with your blog's name). This list doesn't have any effect on pagination, unlikepagination.posts
. - NEW: Categories and tags are exposed through
blog.categories
andblog.tags
(same remark as previously for multiple-blog sites). - NEW: Added a
striptag
filter in Twig to strip HTML tags from the start and end of some text. - NEW: The
pagination
template data object now also hasnext_post
andprev_post
properties to get the next and previous posts if the current page is a post. - NEW: The
chef plugins
command can now install plugins from the internet. - NEW: Added the
textfrom(path)
Twig function to include text from an arbitrary file from outside the website. - NEW: Added the
chef find
command to find all pages, posts and templates in the website with optional filtering features. - NEW: Added the
chef showconfig
command to print parts or all of the website configuration settings. - NEW: Added the
twig/auto_escape
configuration setting to disable Twig's auto-escaping of HTML content. - NEW: Added a Jekyll importer.
- NEW: Added a Joomla importer.
- NEW: File processors can now be chained (e.g.: process a Sass stylesheet into CSS and then through the YUI compressor).
- CHANGED: The cache is now invalidated if anything changes in the website's configuration file.
- CHANGED: The
chef import
command's options are now mandatory arguments. - CHANGED: Pages are now cached differently: the parsed configuration and content segments are cached, but not the rendered/formatted content segments. Those will be re-rendered on demand so that even the most advanced Twig use-cases work.
- CHANGED: PieCrust now creates directories with
0755
as the permission set. - CHANGED: The
bakeinfo.json
file is now saved in the cache directory instead of the bake destination directory. - CHANGED: Updated the Markdown and Less PHP libraries to their latest version.
- IMPROVED: The chef server will now start faster in most cases.
- BUG: Fixed a rare bug when both the linker and the pagination are accessed together.
- BUG: Updated to a new version of
Stupid_Http
to fix a bug with serving static files requested with a query parameter. - BUG: Fixed a bug when specifying excluded file processors.
- MINOR: Slightly better formatting for the debug window.
- BUG: Fixed a
chef
bug when running with PHP 5.4+.
- BUG: Fixed a bug in the Wordpress importer when using the default SQL table prefix.
- BUG: Fixed a bug with
chef prepare
not creating directories with the correct permissions.
- NEW: The
chef prepare
command now has a--blog
option to specify which blog to create a post for. - CHANGE: Updated LessPHP to 0.3.3.
- CHANGE: Changed
wordcount
into a Twig filter. - BUG: Fixed a bug with
chef prepare
where a post would be created in the wrong place for websites with several blogs.
- BREAKING CHANGE: Chef's
--debug
option now only changes the verbosity of the command. Before, it also enabled PieCrust's "debug" mode. - NEW: Added the
wordcount
Twig function. - NEW: Added the ability for PieCrust plugins to expose Twig extensions.
- NEW: Added Twig filters:
markdown
,textile
andformatwith
. - NEW: Added
--nocache
parameter to Chef. - NEW: Added
prepare
command in Chef. - CHANGE: Looping over the page linker now returns both files and directories.
- CHANGE: The page linker now exposes the name of directories.
- CHANGE: Chef server doesn't use the cache for the requested page's contents.
- CHANGE: Updated to Twig 1.6.
- CHANGE: Updated to LessPHP 0.3.2.
- BUG: Fixed a harmless crash in
chef init
. - BUG: Fixed crash when baking with caching disabled.
- BUG: Fixed a bug with page asset URLs being incorrect when baking in some rare occasions.
- BUG: Fixed a bug with posts published on the same day not being correctly sorted by time.
- BUG: Fixed a bug with the linker messing up the pagination for the current page.
- BUG: Fixed a crash in the baker.
- BUG: Fixed a bug where the 404 page wasn't used when it should have.
- BUG: Files with spaces in their name now work in the Chef server.
- BUG: Fixed a bug where the site's index file URL was not handled correctly in some parsing functions.
- BUG: Fixed some problems with how
chef serve
caches baked files. The bug would most of time result in incorrectly rendered pages and an error message stating that theserver_cache
directory doesn't exist.
- NEW: Added a
--quiet
option tochef
. - NEW: Added a
chef purge
command to clean the cache directory.
- IMPROVED: The Windows bootstrap script for
chef
is now a bit better at finding thephp.exe
executable. - BUG: Fixed crash bug with
chef import
.
- BREAKING CHANGE:
chef
now behaves likehg
orgit
in that it knows if it is being run inside a PieCrust website. As a result, most commands' syntaxes have been changed. - BREAKING CHANGE: PieCrust now supports plugins. As a result, the Dwoo and Haml template engines, along with the Sass processor, have been removed and turned into plugins.
- BREAKING CHANGE: The
pagination
data exposed inside a layout is now the same one as for the page inserted into that layout -- this means that depending on the case,pagination.posts
would not always return the same thing. You can usepagination.posts.all
and other filtering functions to ensure you always get the same results (e.g. if generating an "archive" sidebar). - NEW: New
chef
commands:root
,plugins
,stats
,tags
andcategories
. - NEW: You can now specify "
* -foo -bar
" in thebaker/processors
site configuration setting to use all processors exceptfoo
andbar
. - IMPROVED: PieCrust now displays an appropriate error message if the user tries to use page asset sub-directories.
- IMPROVED: The output for
chef bake
is better, simpler and unified. - IMPROVED: The
chef
server is better at handling file processors. - IMPROVED: Better performance when generating a page's templating data.
- IMPROVED: Better error handling and error messages in all kinds of situations.
- BUG: Fixed a bug with
pagination
data. - BUG: Fixed path parsing bug with paths starting with "
~
". - BUG: Fixed Unix/Mac
chef
bootstrap to support symbolically linked situations.