Ghost/core/server/models
cobbspur 5c12c78d00 added url handlebars helper
closes #528

- adds method (isPost)to models index.js that returns true if content, content_raw, title and slug are valid properties
- adds url helper which checks context is post using  isPost method
- adds unit test to check a url is prefixed with  /
-adds unit test which checks for empty string if either of the 4 properties above are not present.
2013-08-26 23:58:35 +01:00
..
base.js Validation consistency 2013-08-25 18:10:12 +01:00
index.js added url handlebars helper 2013-08-26 23:58:35 +01:00
permission.js Agressive stripping of the model attributes 2013-08-25 18:12:27 +01:00
post.js Agressive stripping of the model attributes 2013-08-25 18:12:27 +01:00
role.js Agressive stripping of the model attributes 2013-08-25 18:12:27 +01:00
settings.js Agressive stripping of the model attributes 2013-08-25 18:12:27 +01:00
user.js Agressive stripping of the model attributes 2013-08-25 18:12:27 +01:00