PHP Static site generator
What's new in this release?
composer.json
file.Filesystem
. It is an extension of Symfony Filesystem component with a method for reading the content of files.DependencyResolver
, a simple dependency resolver. It is useful for keeping tracks of inter-document dependencies.layout_ext
is not necessary anymore. Now, the option text_extensions
is used to recognize layouts files.FilesystemDataSource
returns layout item identifiers without file extensions when they are unique. In case of name collision, the filename extension will be added.What's new in this release?
Spress-installer
plugin is included in the composer.json
file when a new blank theme is created.Finder
class in FilesystemDataSource
class.PluginManagerBuilder
class with support for loading several plugins
from extra->spress_class attribute of a plugin's composer.json
file..htaccess
value from include
key of configuration files due to the fix #107.new:theme
, add:plugin
, remove:plugin
and update:plugin
. Additionaly, new:site
command has been updated for scaffolding new sites using themes. See the new feature #96.avoid_renderizer
feature to type of files and files belong to a path (relative to src/content
folder). See new feature #91.write
method of IOInterface.ContentManager
class.getSpress
to CommandEnvironmentInterface
.--force
option of new:site
command over a
non-empty directory that contains "hidden" directories and files.askAndHideAnswer
method of ConsoleIO
class to use the fallback argument.What's new in this release?
new:theme
, add:plugin
, remove:plugin
and update:plugin
. Additionaly, new:site
command has been updated for scaffolding new sites using themes. See the new feature #96.avoid_renderizer
feature to type of files and files belong to a path (relative to src/content
folder). See new feature #91.write
method of IOInterface.ContentManager
class.getSpress
to CommandEnvironmentInterface
.--force
option of new:site
command over a
non-empty directory that contains "hidden" directories and files.askAndHideAnswer
method of ConsoleIO
class to use the fallback argument.What's new in this release?
FileInfo
has been added to the support classes set of the core.title_path
attribute when the filename contains dots before the extension. More details in bug #88.title_path
is not altered when it is parsed by FilesystemDataSource
class. More details in bug #88.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.What's new in this release?
lower
and upper
.What's new in this release?
site:build
command is invoked against a non Spress site folder.What's new in this release?
CommandEnvironmentInterface
interface has been added and CommandPluginInterface
has been updated with setCommandEnvironment
and getCommandEnvironment
methods. See feature #77.next
and prior
relationships. At compile time, you have access to these through page.relationships.next
and page.relationships.prior
variables. See feature #69.RelationshipCollection
. A new method getRelationshipCollection has been added to ItemIterface
.MirrorConverter
class has been replaced by MapConverter
. See feature #73. Fixed ticket: #28 "Support .twig extention".ItemCollection
class to Core support classes.getCollections
method in CollectionManager
class.clearConverter
and countConverter
methods in ConverterManager
class.setItem
method of SiteAttribute
class in ContentManager
class.PluginManager
class have been moved to a Collection
class.CollectionManager
class have been moved to a Collection
class.SelfUpdateCommand
class.page.path
variable. Prior to this version, this variable contains the relative path to src/content/
but with the filename extension changed by the Converter. Now, the original filename extension isn't altered. A new path snapshot has been created in ItemIterface
.What's new in this release?
PluginTester
class has been added to the core for testing plugins easily.after_render_page
event.ItemInterface
has been changed: SNAPSHOT_AFTER_PAGE
-> SNAPSHOT_AFTER_RENDER_PAGE
.What's new in this release?
twig.html
in configuration files.AttributeValueException
at PaginationGenerator
class.What's new in this release?
ConsoleIO
class uses Symfony CLI styles.yosymfony/spress-installer
to spress/spress-installer
.url
attribute of items before dispatch spress.before_render_blocks
event.ConsoleIO
methods./doc/2.0
.$fallback
argument of askHiddenResponseAndValidate
and askAndHideAnswer
methods in IOInterface
.