Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
handlebars-load-tree
Advanced tools
Load handlebars templates and partials from a directory, recursively.
The handlebars tree loader exposes one function which will walk a directory tree, recursively, compiling handlebars templates.
var path = require('path');
var Handlebars = require('handlebars');
var handlebarsLoadTree = require('handlebars-load-tree');
var views = handlebarsLoadTree(Handlebars, path.join(__dirname, 'spec', 'fixtures'));
var locals = {
title: 'Titles are Nice',
items: [
{
text: 'Buy Milk'
},
{
text: 'Pick up Prescription'
},
{
text: 'Read PDF'
}
]
};
views.call('index_vanilla', locals).then(console.log);
This plugin also works with handlebars-layouts as handlebars-layouts modified
the Handlebars instance. Load handlebars-layouts normally and pass the modified
Handlebars to handlebarsLoadTree
.
var path = require('path');
var Handlebars = require('handlebars');
require('handlebars-layouts')(Handlebars);
var handlebarsLoadTree = require('handlebars-load-tree');
var views = handlebarsLoadTree(Handlebars, path.join(__dirname, 'spec', 'fixtures'));
var locals = {
title: 'Titles are Nice',
items: [
{
text: 'Buy Milk'
},
{
text: 'Pick up Prescription'
},
{
text: 'Read PDF'
}
]
};
views.call('index', locals).then(console.log);
FAQs
Load handlebars templates and partials from a directory, recursively.
The npm package handlebars-load-tree receives a total of 34 weekly downloads. As such, handlebars-load-tree popularity was classified as not popular.
We found that handlebars-load-tree demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.