moudy / broccoli-taco

Static Sites Powered by Broccoli
http://broccoli-taco.com/
94 stars 14 forks source link

Dynamic partial helper #5

Open nathanielks opened 9 years ago

nathanielks commented 9 years ago

Hello again!

Trying to write a helper that allows me to access partials dynamically. I'd like to access Handlebars.partials[] but broccoli-taco tells me ReferenceError: Handlebars is not defined. Is there a method in which I can access the Handlebars object?

nathanielks commented 9 years ago

If it helps at all, my desire is to be able to do something like this:

{{#each page.widgets}}                
  {{dynamicPartial this.partial this}}
{{/each}}