Releases: canjs/can-legacy-view-helpers
Releases · canjs/can-legacy-view-helpers
Restore all of legacy can.view
To assist in the upgrade path for CanJS 2.x projects, especially ones using EJS, this 1.0.0 release of can-legacy-view-helpers provides all of the functionality of the legacy can.view
module, including:
- a legacy
Deferred
object that works likejQuery.Deferred
prior to jQuery 3.1, including synchronous resolution. - can.view(), which takes a renderer or path to a template and a context object, and returns the rendered view as a fragment with bindings resolved.
- can.view.render(), which takes a renderer or path to a template and a context object, and returns the rendered view as a string without bindings resolved.
- can.view.fragment(), which resolves any bindings on a string view created with can.view.render() and returns the result as a document fragment.
See #37 for the majority of code changes since version 0.6.
Remove pre-release package references
The post-can-reflect releases from CanJS 3.9 are all stable, so packages shouldn't be depending on pre-releases now.
Also in this release: check if window is defined (#20)
can-reflect
v0.6.0 0.6.0