Handlebars.js has partials, which you define and register separately with a `<script>` template snippet and a Javascript call to `registerPartial`. I find that cumbersome and I prefer the Jinja style of defining macros, which you do in the same template language.

Is there a helper out there that would let me do something like this:

```
{{#macro macro-name}}
  This is {{ bar }} and this is {{ foo }}
{{/macro}}

{{macro-name bar="BAR"}} {{! foo would be searched in the outer context}}

```

I've searched without luck.