
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
jsx-template
Advanced tools
import JSX from 'jsx-template';
JSX.compile(
'<Header><h1>{title}</h1></Header>',
{
title: 'JSX Templates are Awesome'
},
{
Header: '<div class="header">{children}</div>'
}
); === '<div class="header"><h1>JSX Templating Engine is Cool</h1></div>';
Since the launch of React.js a many developers in the JavaScript community have been exposed to the JSX synatx which React uses to declare it's elements.
Meanwhile those developers who also may build static pages (frontend or backend) can't just use the JSX syntax for templating as it requires the whole use of React.
JSX Template is intended to bring a solution for developers who are familiar with the syntax and would like to use it for static templates.
The template engine borrows the props logic of well known templating engines like {{ mustache }}. The components registeration idea was inspired by Handlebars Partials.
JSX.compile(template, props, components);
Compile JSX templates and props into a HTML string.
JSX.register(name || {name: component}, component);
Register components (partials) to use within your JSX templates.
FAQs
Static template engine based on the JSX Specification
We found that jsx-template 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.