问题描述
将 scriban 与 SXA 一起使用,我们注意到生成的 HTML 有很多空格,例如:
<div id=”dv1”>
<div id=”dv2”>
这是因为在使用 id=de2 渲染 div 之前,在 scriban 中我们有 if 条件,有没有办法格式化 html ?
将 scriban 与 SXA 一起使用,我们注意到生成的 HTML 有很多空格,例如:
<div id=”dv1”>
<div id=”dv2”>
这是因为在使用 id=de2 渲染 div 之前,在 scriban 中我们有 if 条件,有没有办法格式化 html ?