Boolean checks in underscore templates

前端 未结 3 1655
孤城傲影
孤城傲影 2020-12-09 07:08

I had to replace the default underscore teplating delimiters/Interpolate regex for compatibility with asp.net webforms.From the website i opted for mustache like syntax

3条回答
  •  忘掉有多难
    2020-12-09 07:56

    As far as you hasn't overwritten the Underscore.templateSettings.evaluate setting you should still can use: <% ... %> for evaluate code.

    I have seen attempts to also define the Underscore.templateSettings.evaluate setting to match with Mustache syntax but Mustache fights very strong against template evaluations so is gonna be difficult.

提交回复
热议问题