Loader middleware for dustjs