Handlebars:
Template
<div class="entry">
{{#if author}}
<h1>{{firstName}} {{lastName}}</h1>
{{/if}}
</div>
Preparation-Script
// Handlebars.registerHelper('loud', function(string) {
//    return string.toUpperCase()
// });
Input
{
  author: true,
  firstName: "Yehuda",
  lastName: "Katz",
}
Output
<div class="entry">
<h1>Yehuda Katz</h1>
</div>
마지막 업데이트: 2024. 6. 5. 오후 11:37:24