We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
现在用处不大,但总会用上的,这样:
var engine = new template.Engine(); engine.config('encodeHTML', false);
表示默认不要进行HTML转义。
当然也有template.config('encodeHTML', false);的写法。
template.config('encodeHTML', false);
另外还要全局配置(区别于template.config,那个只给默认引擎生效),因此要有
template.config
template.global('encodeHTML', false);
The text was updated successfully, but these errors were encountered:
暂不支持全局配置先
Sorry, something went wrong.
config接口已实现,就关了哈
未实现global config先,怕人new Engine了后,用着用着被耍了
No branches or pull requests
现在用处不大,但总会用上的,这样:
表示默认不要进行HTML转义。
当然也有
template.config('encodeHTML', false);
的写法。另外还要全局配置(区别于
template.config
,那个只给默认引擎生效),因此要有The text was updated successfully, but these errors were encountered: