这是一个例子:
{{#_}}<strong class="point-submitter">
{{#if submitter.avatar_url }}
<img src="{{ submitter.avatar_url }}" class="avatar" />
{{^}}
<img src="{{ STATIC_URL }}css/images/user-50.png" class="avatar" />
{{/if}}
{{#if submitter.name }}
{{ submitter.name }}
{{^}}
{{#if submitter_name }}
{{ submitter_name }}
{{^}}
{{ anonymous_name }}
{{/if}}
{{/if}}
</strong> {{ action_text }} this {{ place_type_label location_type}}
{{#if region}}
in {{ region }}
{{/if}}{{/_}}
取自这里: https ://github.com/openplans/shareabouts/blob/master/src/sa_web/jstemplates/place-detail.html#L6
使用{{#_}} ... {{/_}}
块有什么不同?我在Handlebars 文档上没有找到太多东西,搜索类似这样的术语#_ handlebars block underscore
也不是很有帮助。