
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
tiny-compilator
Advanced tools
Build your stack with Handlebars.js for create static pages.
npm install tiny-compilator handlebars
Create a Compilator instance with in arguments the paths (glob pattern is available) of layouts, helpers & partials folders. Then call render method of your instance with the path of your page and data to pass:
const Compilator = require("tiny-compilator");
const compile = new Compilator({
helpers: "path/to/helper/folder/**/*.js",
layouts: "path/to/layout/folder",
partials: "path/to/partials/folder/**",
});
compile.render("path/to/your/page", data); //=> return html compiled
In top of your page you must declare in attribute the layout chosen as this example:
---
layout: "default"
---
<!-- html page -->
In your layout html you must call the partial handlebars 'body' where all the page content must be placed:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
{{> body }}
</body>
</html>
FAQs
Build your stack with Handlebars.js for create static pages.
We found that tiny-compilator 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.