feat: renderSync, parseAndRenderSync and renderFileSync, see #48

This commit is contained in:
harttle
2019-08-26 10:15:43 -05:00
committed by Jun Yang
parent 8028f82499
commit 7fb01ad69a
66 changed files with 896 additions and 272 deletions
+2 -8
View File
@@ -43,14 +43,8 @@ export class RenderError extends LiquidError {
this.message = err.message
super.update()
}
}
export class RenderBreakError extends Error {
public resolvedHTML: string = ''
public constructor (message: string) {
super(message)
this.name = 'RenderBreakError'
this.message = message + ''
public static is (obj: any): obj is RenderError {
return obj instanceof RenderError
}
}