Hi.
i'm trying to create a way to override templates so that someone can over a template or two by placing a template or two in a directory (say internal/views )
and have the app start using those instead of the ones in app/views.
the aim is for me to build a 'generic' version of my tool (and putting it in opensource), while at the same time putting custom templates in a different directory and having the app use those.
I spoke to Will on gitter, and he mentioned jar files and stuff, but I think what i'd like to be able to do is have them both available to edit/change at the same time.
I thought it may be easy to do this in SBT via something like
//TwirlKeys.compileTemplates += baseDirectory.value / "internal"
val internalDir = baseDirectory / "internal"
sourceDirectories in (Compile, TwirlKeys.compileTemplates) := (unmanagedSourceDirectories in Compile).value ++ internalDir.value
but that doesn't compile.
any suggestions ?