I hate long filename, and scala here make no sense to me(I don't use scala at all). So is there any way to remove .scala
suffix ?
Asked
Active
Viewed 81 times
-1

Govind Singh
- 15,282
- 14
- 72
- 106

WoooHaaaa
- 19,732
- 32
- 90
- 138
-
1Off topic: believe me that there are many systems with muuuuch longer namespaces, Play is brilliant in this topic :) if it's so annoying for you just create some shortcut in your IDE, and that's all – biesior Aug 01 '14 at 19:55
2 Answers
1
No,not Possible I Think! neither for html
or xml
you need to use .scala.html
or .Scala.xml
Templates are compiled as standard Scala functions in Play Framework.
If you create a views/Application/index.scala.html
template file, it will generate a views.html.Application.index
class that has an apply()
method.

Govind Singh
- 15,282
- 14
- 72
- 106
0
It makes sense as you mix Scala code (@...) with html in such file. Btw template file is compiled to be a scala function you can call from other scala code.

cchantep
- 9,118
- 3
- 30
- 41