I have a model which have a relationship with several type of model inside the same property (folder: subfolder and item).
I wonder how to render children of the model without using
{{#if item.isFolder}}
{{#folder-item folder=item parent=this}}{{/folder-item}}
{{/if}}
{{#if item.isPage}}
{{#page-item page=item parent=this}}{{/page-item}}
{{/if}}
Aucun commentaire:
Enregistrer un commentaire