perf: improve performance by 4x by simplified parseFile

- previously deprecated `getTemplate()` and `getTemplateSync()` not no longer supported
- `opts` no longer support dynamic set in `parseFile()`, `renderFile()` arguments
This commit is contained in:
harttle
2021-09-27 23:04:41 +08:00
parent 6b9f872bcc
commit 24f5346084
14 changed files with 103 additions and 151 deletions
+1
View File
@@ -4,6 +4,7 @@ const { join } = require('path')
const liquid = new Liquid({
root: join(__dirname, '../templates'),
cache: true,
extname: '.liquid'
})