Closed wangwb closed 6 years ago
An index.marko
will automatically pick up a component.js
in the same directory but for .marko
files that have another name (like template.marko
) the component file should have the same name prefix (like template.component.js
).
See also: http://markojs.com/docs/components/#supporting-files
Question
I'm trying to use renderer to render one of my template like this:
So is there a way I can associate my controller (
component.js
for example) to this certain template? Thanks a lot.