mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
docs: fix async/await typos in render-file
This commit is contained in:
@@ -78,14 +78,14 @@ var engine = new Liquid({
|
||||
readFileSync (file) {
|
||||
return db.model('Template').findByIdSync(file).text
|
||||
},
|
||||
await readFile (file) {
|
||||
async readFile (file) {
|
||||
const template = await db.model('Template').findById(file)
|
||||
return template.text
|
||||
},
|
||||
existsSync () {
|
||||
return true
|
||||
},
|
||||
await exists () {
|
||||
exists () {
|
||||
return true
|
||||
},
|
||||
resolve(root, file, ext) {
|
||||
|
||||
Reference in New Issue
Block a user