Skip to content

v0.7.0

Choose a tag to compare

@cappuc cappuc released this 22 Feb 13:33
· 355 commits to main since this release

Breaking Changes

  • Introduced Environment concept to allow multiple liquid instances with different settings, tags and filters. This was partially possible with TemplateFactory previously.
  • TemplateFactory has been removed and replaced by EnvironmentFactory, some methods (newParseContext, newRenderContext, parseString, parseTemplate) have been moved to Environment and default values of setters has been removed.
  • Renamed environment and staticEnvironment parameters of RenderContext to data and staticData to avoid confusion with Environment object.
  • Share parsed templates globally (in the environment), so we can skip re-parsing of partials used in multiple templates. Removed PartialsCache. The Template state now contains only the template name instead of the parsed Template.
  • Moved default tags and filters to StandardExtension that is registered by default.
  • Refactored profiling and moved to ProfilerExtension.
  • Added option to RenderContext to enable parsing of templates at render time.

What's Changed

Full Changelog: v0.6.6...v0.7.0