Question

I am developing a Play Framework 1.2.5 application, and have introduced a custom tag at:

/path/to/project/app/views/tags/myFirstTag.html

According to the documentation, this is the correct place to put it, but, our SVN commit hooks stop me from committing because SVN thinks I'm committing to a tag.

I could obviously try and go down a bureaucratic black hole and try to get the SVN hooks modified so they take into account whether a parent directory is called trunk but I am not very hopeful, especially in a short timeframe.

Therefore, are there any other folders within the Play tree namespace that are treated in the same way as app/views/tags? If not, is it something that can be configured?

Was it helpful?

Solution

Just checked in the code and it looks like tags/ is hard coded in GroovyTemplate.invokeTag method:

370: tagTemplate = (BaseTemplate)TemplateLoader.load("tags/" + templateName + "." + callerExtension);

so no way you can change it without modifying framework code. :/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top