Repository navigation
v0.7.0
Breaking Changes
- Introduced
Environmentconcept to allow multiple liquid instances with different settings, tags and filters. This was partially possible withTemplateFactorypreviously. TemplateFactoryhas been removed and replaced byEnvironmentFactory, some methods (newParseContext,newRenderContext,parseString,parseTemplate) have been moved toEnvironmentand default values of setters has been removed.- Renamed
environmentandstaticEnvironmentparameters ofRenderContexttodataandstaticDatato avoid confusion withEnvironmentobject. - Share parsed templates globally (in the environment), so we can skip re-parsing of partials used in multiple templates. Removed
PartialsCache. TheTemplatestate now contains only the template name instead of the parsedTemplate. - Moved default tags and filters to
StandardExtensionthat is registered by default. - Refactored profiling and moved to
ProfilerExtension. - Added option to
RenderContextto enable parsing of templates at render time.
What's Changed
- Shopify liquid 5.6 changes by @cappuc in #28
- customisable error handler by @cappuc in #29
- Extensions by @cappuc in #30
- Dynamic render tag by @cappuc in #31
- Ternary filter by @cappuc in #32
- Shared templates cache by @cappuc in #33
- Template cache options by @cappuc in #37
- Fix render variables by @cappuc in #38
- lazy template parsing by @cappuc in #39
- Removed default values on
EnvironmentFactorysetters
Full Changelog: v0.6.6...v0.7.0