Jade - way to add dynamic includes

后端 未结 1 2012
盖世英雄少女心
盖世英雄少女心 2021-01-11 16:04

I\'d like to do something like the following within a jade template.

include page-content/#{view.template}

As this won\'t work I have ended

相关标签:
1条回答
  • 2021-01-11 16:46

    Feels like way too much logic in the view to me. Seems like the best way to do this would be through a dynamicHelper or possibly a mixin

    0 讨论(0)
提交回复
热议问题