-
Notifications
You must be signed in to change notification settings - Fork 2
Can only use .marko extension for layouts? #2
Comments
You are right that Marko should allow other file extensions. I've not run into the issue you are seeing because I only using the Interestingly, Marko allows templates of other types to be included by going through the view-engine module. The view-engine module normalizes the API for various templating engines and we use the file extension to determine the template type. When doing an include if Marko doesn't recognize the file extension of the template it attempts to load the template through the I'll put in a simple fix in a few minutes. Thanks. |
Issue fixed and test case added. New version of marko published: Thanks for reporting the problem. |
Thanks for the super fast response and resolution! |
I'm guessing Marko is meant to support more than just a
.marko
extension since the install has a configuration option for other extensions like so:require('marko/node-require').install({extension: ".html"});
That works for single files but if I have the following:
I get the following error:
The same error seems to be true for includes as well. Is there some more configuration I'm missing somewhere?
The text was updated successfully, but these errors were encountered: