@ RequestMapping ( value = "/soy/compileJs" , method = GET ) public ResponseEntity < String > compile ( @ RequestParam ( required = false , value = "hash" , defaultValue = "" ) final String hash , @ RequestParam ( required = true , value = "file" ) final String [ ] templateFileNames , @ RequestParam ( required = false , value = "locale" ) String locale , @ RequestParam ( required = false , value = "disableProcessors" , defaultValue = "false" ) String disableProcessors , final HttpServletRequest request ) throws IOException { return compileJs ( templateFileNames , hash , new Boolean ( disableProcessors ) . booleanValue ( ) , request , locale ) ; }
An endpoint to compile an array of soy templates to JavaScript .