Hi Mauro,
Glad to hear that RaptorJS is working out for you! The "raptor-dust" module was an experiment to see if we could create helpers that could be included in both Dust templates (as helpers) and Raptor Templates (as custom tags). This allowed us to integrate the RaptorJS Optimizer tags into both Raptor Templates and Dust. For Dust, the code to utilize the RaptorJS Optimizer helpers looks like the following:
{@optimizerPage packagePath="/ui-pages/dust/package.json" name="dust"/}
<html>
<head>
<title>Dust Demo</title>
{@optimizerSlot name="head" /}
</head>
<body>
<h1>Hello from Dust!</h1>
{@optimizerSlot name="body" /}
</body>
</html>
We got it working for our Node.js stacks, but it could probably use some cleanup and it definitely could use a README. With that said, here is the code that we used to enable the module:
require('raptor-dust').configureDust(require('dustjs-linkedin'), srcDir);
I hope that gives you enough guidance to get it working. If you run into issues please let me know or feel free to create a Github issue or send a Pull Request.
FYI, we are refactoring RaptorJS to make it easier to use. Part of this includes separate out the "raptor" module into a lot of independent and smaller modules, but we are also making significant improvements to the RaptorJS Optimizer and Raptor Templates. You can check out the plan on the following page:
Here's where the new code for RaptorJS 3 lives for now:
Thanks,
Patrick