mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
feat: renderFileToNodeStream(filepath, scope)
This commit is contained in:
@@ -84,6 +84,10 @@ export class Liquid {
|
||||
const templates = this.parseFileSync(file)
|
||||
return this.renderSync(templates, ctx)
|
||||
}
|
||||
public async renderFileToNodeStream (file: string, scope?: object) {
|
||||
const templates = await this.parseFile(file)
|
||||
return this.renderToNodeStream(templates, scope)
|
||||
}
|
||||
|
||||
public _evalValue (str: string, ctx: Context): IterableIterator<any> {
|
||||
const value = new Value(str, this)
|
||||
|
||||
Reference in New Issue
Block a user