scaffolding icon indicating copy to clipboard operation
scaffolding copied to clipboard

Template files have wrong file extension

Open xpusostomos opened this issue 3 years ago • 4 comments

It's pretty annoying that groovy scaffolding template files in src/main/templates have the file extension .groovy because IDEs assume they are groovy files and annoy you forever that their syntax is invalid. In point of fact, they are not groovy files, they are a mish mash of groovy and some other stuff. Just like Microsoft Excel templates have different file extension (.xlsx) compared to regular Excel files (.xls), these non-groovy half-groovy templates deserve their own file extension, such as .groovyt or something. I could say the same thing about .gsp template files, should be .gspt.

Who knows... if you differentiate them thus, Jetbrains might even write a syntax checker for them.

xpusostomos avatar Nov 29 '21 10:11 xpusostomos