Spress 2.2.0-rc is out. Help us to test

Hello community. Last Monday 16th of January I released the first RC of Spress 2.2.0 (I think this will be the only RC). We need help for testing the new features. This version comes with a few new features such as a package manager, support for themes or the migration of Symfony components from 2.7 to 3.2. This migration could throw some excetions due to the deprecations introduced in Symfony Yaml component since version 2.8. In the coming days I'm going to update the documentation according to the new features. Additionaly, I'm going to review the themes of Spress add-ons organization on Github.

Read more

New in Spress 2.2.0: "avoid_renderizer" feature for type of files

Hello community! Spress is on the way to 2.2.0 and today we want to unveil a new feature for applying the "avoid_renderizer" feature automatically to both certain type of files and files that belong to a path. The avoid_renderizer attribute let's avoid the renderizer comes into action with a file. Prior to Spress 2.2.0, you needed to put this attribute file by file. Now, you can set a filter in the config.yml file like the following:

# config.yml
  filename_extensions: ['css', 'js']
  paths: ['assets']

In the prior example, all files belonging to assets folder (this folder is relative to src/content path) or those with a filename's extension type css or js will receive an avoid_renderizer: true attribute unless otherwise expressly provided in a file.

Spress comes with the following configuration by default:

  filename_extensions: ['css', 'js']
  paths: ['assets', 'bower_components', 'node_modules']

Spress 2.1.3 released

Hello community. A new maintenance release of Spress has been released. The highlights this time have been a fix related with the content of title_path attribute in case of filenames with dots before extension (previously, the value of this attribute appears truncated). Additionally, the value of title_path will no longer be altered by FilesystemDataSource class, only rawurlencode function is applied. If you have a file called 02-02-spress-2.1.1-released.md then the value of title_path will be spress-2.1.1-released instead of spress-2-1-1-released.

Another improvement has been the option for avoid scanning certains directories such as tests when the plugin manager is loading classes in order to detect which of those are plugins.

The complete changelog:

  • New Class FileInfo has been added to the support classes set of the core.
  • New New configuration value aimed to plugin manager builder for excluding directories in the disconvering class phase. Useful to avoid scaning test classes.
  • Fixed Fixed the truncated title_path attribute when the filename contains dots before the extension. More details in bug #88.
  • Fixed The value of title_path is not altered when it is parsed by FilesystemDataSource class. More details in bug #88.
  • Fixed If you set preserve_path_title attribute to true you will get the title parsed from the filename as-is (without the date part). Only rawurlencode function is applied. See PR #90.
Read more