In my grails project I have created two files:
src/main/webapp/abc.html
src/main/webapp/test.gsp
Inside each I have just the expression:
${1+1}
test.gsp outputs: 2 , which is correct.
abc.html outputs the literal : ${1+1} , which is wrong for what I’m going for.
I tried to tell grails to enable servlet processing for html via setting:
grails:
views:
gsp:
servlet:
mapping: [“/”, “*.gsp”, “*.html”]
but this has not effect, I assume because these files are not in the grails
convention over configuration view folder structure.
Is there a way I can turn on gsp rendering for .html files
in the src/main/webapp/ folder?