DocPad v6.46.4 Release Notes
Release Date: 2013-07-27 // almost 11 years ago-
- 🛠 Fixes
- Fixed virtual documents firing duplicated events
- Plugins should now use
DocPad::cloneModel(model)
instead ofmodel.clone()
as the latter can't bind events correctly
- Plugins should now use
- Fixed
Object #<Model> has no method 'setDefaults'
error (bug since v6.46.3)- Moved
FileModel::setDefaults
back intoBase::setDefaults
- Thanks to Jeff Barczewski for bevry/docpad-documentation#40
- Moved
- Fixed the 500 middleware not working
- Fixed virtual documents firing duplicated events
- Changes
- The
documents
collection is now defined byrender:true, write:true
rather than being paths andisDocument:true
based - The
files
collection is now defined byrender:false, write:true
rather than being paths andisFile:true
based - The
html
collection now checks forwrite:true
instead ofisDocument:true
orisFile:true
- The
stylesheet
collection now checks forwrite:true
instead ofisDocument:true
orisFile:true
- The
- Additions
- Added ability to do
getCollection('database')
to get the global database - Added naming to collections to easily identify which collection we are in when debugging
- Added
render
alias for documents directory - Added
static
alias for files directory - Added logging for event emits
- Re-added
DocPad::parseDocumentDirectory
andparseFileDirectory
(removed from v6.46.0) which wraps around the new ways of doing things - Added
DocPad::createModel(attrs,opts)
and updatedDocPad::createDocument
andDocPad::createFile
to use it - Added
DocPad::ensureModel(attrs,opts)
and updatedDocPad::ensureDocument
,DocPad::ensurefile
, andDocPad::ensureFileOrDocument
to use it - Added
DocPad::attachModelEvents(model)
to attach the required docpad events to a model
- Added ability to do
- 🛠 Fixes