We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 771735d commit df54f43Copy full SHA for df54f43
src/content-render/liquid/index.ts
@@ -2,7 +2,9 @@ import { processLiquidPost } from './post'
2
import { engine } from './engine'
3
4
export async function renderLiquid(template: string, context: any): Promise<string> {
5
- template = await engine.parseAndRender(template, context)
+ if (template.includes('{%') || template.includes('{{')) {
6
+ template = await engine.parseAndRender(template, context)
7
+ }
8
template = processLiquidPost(template)
9
return template
10
}
0 commit comments