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 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

Spress 2.1.2 released

Hello. A new maintenance release of Spress has been released with some bug fixes.

The complete changelog:

  • New Two new methods have been added to StringWrapper class: lower and upper for cingonvert a given string to lower-case and upper-case respectively using UTF-8 as encoding.
  • Fixed Bug #80 has been fixed: "Composer install fails if no namespace is specified in new plugin". See PR #81.
  • Fixed Bug #82 has been fixed: "Substr --- in yaml string cause builder crash".
  • Fixed Bug #83 has been fixed: "Same tags on different languages cause builder crash".
Read more

Spress 2.1.1 released

Hi Spress folks! The first maintenance release of Spress 2.1 has been released with two bug fixes.

The complete changelog:

  • Fixed Bug #78 has been fixed: "/:basename permalink variable contains .html when using *.html.twig". Related with feature #73.
  • Fixed Bug #79 has been fixed: "Error loading plugin's dependencies with -s option at site:build command".
  • Improved Clarified the message when site:build command is invoked against a non Spress site folder.
Read more