You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/03/17 18:46:49 UTC

[GitHub] [camel-quarkus] aldettinger commented on issue #868: Add templates config option to the Mustache extension

aldettinger commented on issue #868: Add templates config option to the Mustache extension
URL: https://github.com/apache/camel-quarkus/issues/868#issuecomment-600237754
 
 
   As far as I could drill, I've found no way to pre-compile templates on top of camel 3.1.
   
   I'm thinking about complementing the mustache component with a kind of "mustache registry" (resourceUri -> pre-compiled-mustache-template). At endpoint creation time, the mustache component could then try to provide a pre-compiled mustache template according to the resource uri. OnExchange processing, the template is resolved with priority from header, then pre-compiled, then as usual.
   
   On camel-quarkus side, I guess we would just need to record the "registry" / component initialization.
   
   Maybe there is a way to skip the component level and make camel-quarkus store the "mustache registry" in the camel-registry... I don't know.
   
   Any advices, inputs, pointers are welcome :)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services