go mustache 如何输出'%'?
go mustache how to output '%'?
Html模板代码:
<button type="button" style="width:80%;">asasas</button>%
小胡子会输出如下:
<button type="button" style="width:80%!;(MISSING)">asasas</button>%!(NOVERB)
出乎意料,如何解决?
老实说,这看起来像是库中的错误,因为类似 printf 的 %
说明符不是 mustache 语言的一部分,但最有可能在输出中获取 % 的方法是使用 %%
在模板中。
Html模板代码:
<button type="button" style="width:80%;">asasas</button>%
小胡子会输出如下:
<button type="button" style="width:80%!;(MISSING)">asasas</button>%!(NOVERB)
出乎意料,如何解决?
老实说,这看起来像是库中的错误,因为类似 printf 的 %
说明符不是 mustache 语言的一部分,但最有可能在输出中获取 % 的方法是使用 %%
在模板中。