在输入字段中的第一个 space 之后把手不填充数据

Handlebars not populating data after first space in input field

    {{#if data.project_name}}
        <h1>{{data.project_name}}</h1>
    {{/if}} 

在 h1 标签内正确显示 "This is the value" (data.project_name == "This is the value"),但是

    {{#if data.project_name}}
         <input type="text" value={{data.project_name}}>
    {{/if}}

输入里面只显示"This",请帮忙...

明白了,有朋友说是什么问题

    <input type="text" value="{{data.project_name}}">

当我不加引号时,车把只承受“ 这个”作为值属性的值,并丢弃字符串的其余部分,虽然我不知道为什么会这样。

编辑

我还在 github 上发现了一个关于车把问题的已解决问题:https://github.com/meteor/meteor/issues/1474