简体   繁体   中英

Handlebars does not support empty template

I have some problems with handlebars . I have a template: <input id="some-id" size="40" value={{someValue}} placeholder="bla bla"/> When someValue is empty line, my template crashes (see attached image). 在此处输入图片说明

Version of handlebars is 4.0.8

用引号包裹{{someValue}}对我有帮助: <input id="some-id" size="40" value="{{someValue}}" placeholder="bla bla"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM