Open devxzero opened 1 year ago
Thank you for the heads up!
Yes, this is indeed a bug, where the plugin doesn't 100% follow the jte documentation.
So far, I didn't have problems with it, since the plugin generates parameter names for template calls anyways by default. In the projects I'm using jte we have the convention to always use paramter names (so for us it's almost a feature, rather than a bug, heh :-))
So far I haven't found time to look into it - the parameter parts are a bit hacky already.
I just tried JTE for the first time. Great project!
But I'm not sure if I'm overlooking something, but the plugin seems to require named parameters when calling a template with arguments, even though JTE itself compiles fine with just parameter order instead of named parameters.
The JTE documentation does mention in https://github.com/casid/jte/blob/main/DOCUMENTATION.md
But in my situation, it's not just a suggestion of the plugin, it's a requirement of the plugin. So it shows an error if parameter order is used instead.
Example
src/main/jte/component1.jte:
src/main/jte/test/jte:
This will show the error: