Skip to content

Add clarifications to the prototype library API and improve code docs.

Compare
Choose a tag to compare
@rur rur released this 25 Feb 18:28
· 229 commits to master since this release
17227eb

Bugfix

  • Writer implementation was not including query in response URL header

Breaking API Changes

  • Remove treetop.Renderer type, unnecessary since it only wraps TemplateExec
  • Add TemplateExec parameter to treetop.NewView.. API method for creating base views
  • Rename treetop.TreetopWriter interface to treetop.Writer to conform to naming guidelines
  • Remove treetop.Test, testing recipes and resources belong elsewhere
  • Split treetop.Writer function into treetop.NewPartialWriter and treetop.NewFragmentWriter and remove the confusing isPartial flag
  • Change treetop.View from an interface to a struct and expose internals to make debugging easier
  • Rename HandlePartial method to HandleSubView in treetop.Response interface to be consistent with the view builder
  • Rename Done method to Finished in treetop.Response interface
  • Rename HandlerFunc signature type to ViewHandlerFunc to make a clearer association with the view builder