Closed alonprince closed 10 years ago
参见http://hexo.io/docs/troubleshooting.html
Hexo uses Swig to render posts. Contents wrapped with {{ }} or {% %} will be parsed and may cause problems. You can wrap sensitive contents with raw tag plugin.
好的,谢谢了
您好,我试了一下,发现还是报错,您看我写的对么?
{% rawblock %}
<head>
<title>admin</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<h1>Hello World!</h1>
{{greeting}}
{{> loginButtons}}
<input type="button" value="Click" />
</template>
{% endrawblock /%}
Use {% raw %}{% endraw %}
thanks
Mark {% raw %}{% endraw %}
@alonprince 自觉Close issue
不好意思,忘了点了
因为我工作中用的模板引擎是
handlebars
,所以在写博文的时候,会出现大量的{{Variables}}
,我在代码块写入这些handlebar
的变量时,就会一直报错,严重影响了我的写作体验,望早日解决,谢谢。 代码如下: