Skip to content

Unable to load dynamic partial #250

@tlginn

Description

@tlginn

Given this context

{ getPartialPath: function(){ return myBoolean ? "./partial1" : "./partial2"; } }

for this template:

<div>{{> (getPartialPath) }}</div>

It would be nice if the plugin would load the partial from the return value of getPartialPath. So far I have not found a way to specify dynamic partials with this plugin. Any workaround would be appreciated.

Thank you for your time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions