harttle / liquidjs

A simple, expressive, safe and Shopify compatible template engine in pure JavaScript.
https://liquidjs.com
MIT License
1.5k stars 237 forks source link

cache support for parseAndRender #678

Closed muametgrooby closed 5 months ago

muametgrooby commented 5 months ago

can templates passed into parseAndRender also be cached?

harttle commented 5 months ago

Currently cache is populated only when render files, with file path as cache key. You can call parse() and save the parse results to render() multiple times, that is how to manually cache parse results.