Skip to content

Commit

Permalink
Formatting problem with code example for DocumentModel class (space i…
Browse files Browse the repository at this point in the history
…ndentation)
  • Loading branch information
SteveMcArthur committed Sep 25, 2015
1 parent 0023b9f commit 4f228d0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/models/document.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ YAML = null
# docpad.createModel
#
# #check to see if the document alread exists ie its an update
# docModel = @docpad.getCollection('posts').findOne({slug: 'some-slug'})
# docModel = @docpad.getCollection('posts').findOne({slug: 'some-slug'})
#
# #if so, load the existing document ready for regeneration
# if docModel
# docModel.load()
# #if so, load the existing document ready for regeneration
# if docModel
# docModel.load()
# else
# #if document doesn't already exist, create it and add to database
# docModel = @docpad.createModel({fullPath:'file/path/to/somewhere'})
# docModel.load()
# @docpad.getDatabase().add(docModel)
# #if document doesn't already exist, create it and add to database
# docModel = @docpad.createModel({fullPath:'file/path/to/somewhere'})
# docModel.load()
# @docpad.getDatabase().add(docModel)
#
# @class DocumentModel
# @constructor
Expand Down

0 comments on commit 4f228d0

Please sign in to comment.