Closed chmmpagne closed 3 months ago
Does it work well without any other logic changes?
Does it work well without any other logic changes?
I haven't done any real testing, but it looked to me like these paths weren't getting any additional attention that would need more changes.
The PR needs to be updated to only allow .html
for filenames; .ejs
and .html
for templates.
No logic changes needed from my testing.
Edit: Updated PR.
For better IDE completion and correctness, it would be nice to be able to name the template file with a
.ejs
extension. I.e.,index.ejs
.I believe this would just be a change to the types (
TplStr
) to allow this as well as some documentation updates.It may be even better to not restrict the file extension at all.