twirl icon indicating copy to clipboard operation
twirl copied to clipboard

compileVirtual should not depend on `File` object to template

Open unoexperto opened this issue 6 years ago • 1 comments

I think TwirlCompiler.compileVirtual should not depend on File object to template because internally it's used only to generate template name. This prevent clients from compiling twirl templates on the fly. In my case I'd like admins of web-service to be able to update templates via API which are stored in DB.

unoexperto avatar Sep 07 '17 10:09 unoexperto

@unoexperto How about a pull request? :smile:

mkurz avatar Sep 07 '17 10:09 mkurz