protected void resource ( String template , String packageName , String resourceName , Supplier < Map < String , Object > > context ) { StringBuffer code = generate ( template , context ) ; writeResource ( packageName , resourceName , code ) ; }
Generates and writes a resource in one call .