sagold / handlebars-webpack-plugin

Renders your html-template at build time
161 stars 45 forks source link

Render dynamic partial? #11

Closed cloudnine-gjacob closed 7 years ago

cloudnine-gjacob commented 7 years ago

hello! is there any way of rendering dynamic partials as described in the docs:

{{> (whichPartial) }} or {{> (lookup . 'myVariable') }}

?

cloudnine-gjacob commented 7 years ago

Actually the solution was pretty simple: the lookup helper works as expected, my passed var was wrong; i had the suffix in it ".svg". if you pass "partialsFolder/file" it works! yay

sagold commented 7 years ago

Hi gjacob.

Thank you dor posting the solution!