Rendering component with external template at ctfe
struct Controller { int[] list = [10,20,30,40,50]; } enum tpl = `{{test-each-component list=list}}`; render!(tpl, Controller, TestEachComponent, SeparatorComponent)(Controller()).should.equal("10,20,30,40,50,");
Rendering component with external template at runtime
struct Controller { int[] list = [10,20,30,40,50]; } enum tpl = `{{test-each-component list=list}}`; render!(Controller, TestEachComponent, SeparatorComponent)(tpl, Controller()).should.equal("10,20,30,40,50,");