Skip to content

v3.0.0-rc.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@mattolson mattolson released this 08 May 21:44
· 297 commits to master since this release
7245502
  • Major refactor, moving rendering functionality into paper-handlebars #130 to
    allow for alternate template engines.

v3.0 Contains several breaking changes:

  • Removed the direct access of contentServiceContext for setting page content. From now on, use setContent()
    and getContent().
  • Removed direct access of siteSettings and themeSettings. From now on, use getSiteSettings(), setSiteSettings(),
    getThemeSettings(), and setThemeSettings() if you need to get/set these values after calling the constructor.
  • Removed getTemplateProcessor(). This is an internal concern of paper-handlebars and is used by loadTemplates.
  • Removed loadTemplatesSync(). This was only used by helper tests and is no longer needed.
  • Removed handlebars instance variable. Hopefully nobody is accessing that directly. Any helpers that were accessing
    it have been updated in paper-handlebars to use the global context they are given rather than accessing Paper
    directly at all.
  • The translator attribute has been moved to paper-handlebars and is no longer accessible directly on Paper.
  • The decorators attribute has been moved to paper-handlebars and is no longer accessible directly on Paper.
  • The settings attribute has been renamed to siteSettings. This should only be accessed by paper-handlebars.
  • The cdnify() function has been moved into a helper library in paper-handlebars.
  • The inject attribute has been removed. This is storage used by two of the helpers, and the implementation has
    moved to paper-handlebars.