
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
adaro-fixed
Advanced tools
An expressjs plugin for handling DustJS view rendering. dustjs-helpers are included by default in this module.
var express = require('express');
var app = express();
var adaro = require('adaro');
var options = {
helpers: [
//NOTE: function has to take dust as an argument.
//The following function defines @myHelper helper
function (dust) { dust.helpers.myHelper = function (a, b, c, d) {} },
'../my-custom-helpers', //Relative path to your custom helpers works
'dustjs-helpers', //So do installed modules
{
name: '../my-custom-helpers/helper-to-render-data-with-args',
// or use this signature if you need to pass in additional args
arguments: { "debug": true }
}
]
};
app.engine('dust', adaro.dust(options));
app.set('view engine', 'dust');
// For rendering precompiled templates:
// app.engine('js', adaro.js({ ... ));
// app.set('view engine', 'js');
Make sure that if you've app.set('views', somepath) that the path separators are correct for your operating system.
Config options can be used to specify dust helpers, enabled/disable caching, and custom file loading handlers.
helpers (optional) String Array, helper module namesA helper module must either:
Client and Server Compatible
function setupHelpers(dust) {
// Add helpers
}
if (typeof exports !== 'undefined') {
module.exports = setupHelpers;
} else {
setupHelpers(dust);
}
Alternate API
module.exports = function (dust) {
// Add helpers
};
cache (optional, defaults to true) BooleanSet to true to enable dust template caching, or false to disable.
app.engine('dust', dustjs.dust({ cache: false }));
app.set('view engine', 'dust');
helpers (optional) An array of helper modules to require and use.Expects helpers to be in the form of:
module.exports = function (dust, [options]) {
dust.helpers.something = function (chunk, context, bodies, params) {
};
};
v1.0.0layout: option to render and in configurationdustjs-helpers is not loaded for you automatically. Add it to your helpers configuration if you want it. Make sure you use a version compatible with the dustjs-linkedin that adaro uses.FAQs
An express renderer for DustJs Templates
The npm package adaro-fixed receives a total of 10 weekly downloads. As such, adaro-fixed popularity was classified as not popular.
We found that adaro-fixed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.