SlexAxton/require-handlebars-plugin — pull request #96 by karlwestin (2013-02-28 17:49:34+00:00)
Title: Attempt att fix for loading argument-less block helpers:

This is a proposed fix for #72

Adding the option to specify them in template meta data.

It seems, since handlebars itself can't tell the difference between
block helpers (or other helpers) without params, and just normal data,
that we need to work around this. Currently, the 'myhelper' wont get
loaded:

{{#myhelper}}
Hell Yeah!
{{/myhelper}}

Because handlebars doesn't know if its a helper of shorthand for
{{#if myhelper}}{{/if}}

So let's just add the ability to specify helpers in the meta data,
so that we can tell that those needs to be loaded:
{{!
{
helpers: ["myhelper"]
}
}}

Another option, i guess, could be to just attempt to load everything as helpers, and swallow errors. Though that feels, may i say, a little rough :)

Feedback welcome!