Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
jsx-render-engine
Advanced tools
Library agnostic in-place JSX rendering engine. Supports react, preact, react-router etc.
JSX library agnostic render engine. (react, preact, react-router etc.)
jsx-render-engine
is a an in-place object manipulation engine to transform object content using a JSX library as template.
It is developed as part of metalsmith-react-templates.
You can easily write your own rendering strategies, but it currently supports the following out of the box:
Install the library via:
$ npm install --save jsx-render-engine
You will need to install other dependencies based on your chosen templating engine. For example:
$ npm install react react-dom prop-types // react
$ npm install preact preact-render-to-string // preact
$ npm install react-router // and everything for react.
import Engine from 'jsx-render-engine';
const engine = new Engine(
files, // see "File Objects" below
context, // see "Context Object" below
options // see available options in /core/options.js
);
engine.render('home');
engine.render('about');
const files = {
home: {
title: 'test',
template: 'HomeTemplate.jsx',
content: 'markdown content'
},
about: {
title: 'about',
template: 'AboutTemplate.jsx',
content: 'markdown content'
}
}
const context = {
path: (directory, file) => {},
metadata: () => {}
}
As part of this package moving back into metalsmith-react-templates
repository, the version has jumped from v0.1.2
to v7.0.0
to keep in-sync with the parent repository
MIT License
© Gerald Yeo
FAQs
Library agnostic in-place JSX rendering engine. Supports react, preact, react-router etc.
The npm package jsx-render-engine receives a total of 3 weekly downloads. As such, jsx-render-engine popularity was classified as not popular.
We found that jsx-render-engine 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.