I'm adding Pebble template support to my ratpack application, and there is one matter that bothers me: should my RendererSupport
instance use ratpack's Blocking.get()
or not? As PebbleEngine has it's own cache, i can't say whether it would be loading template source from disk, so it is (possibly) an IO operation.
Looking at handlebars templating implementation i can't see any special treat of the IO operation.
So my question is: is it the rule of thumb to use Blocking
for all the potentially IO-bound operations (e.g. filesystem or db access), or there is some more complicated rule?