Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@binyamin/eleventy-preact
Advanced tools
An Eleventy plugin for rendering JSX/TSX as HTML, with Preact
A personal Eleventy plugin for rendering JSX/TSX as HTML, with Preact.
Add the plugin to your eleventy config, like so:
const eleventyPreact = require("@binyamin/eleventy-preact");
module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(eleventyPreact, {
/* options */
});
}
boolean
) - Determines whether to add a doctype (<!DOCTYPE HTML>
) before the rendered HTML. The doctype is never applied to JSX rendered via the shortcode.string
or false
) - This will register a shortcode with the given name, which renders a JSX file in-place. Setting it to false
disables the shortcode. The shortcode takes two parameters. The first is a file path, relative to the includes
directory. The second is an object, passed as props.These are the default options:
{
doctype: true,
shortcode: "render_jsx"
}
All input is welcome; feel free to open an issue. Please remember to be a mensch. If you want to program, you can browse the issue list.
All source-code is provided under the terms of the MIT license. Copyright 2022 Binyamin Aron Green.
0.2.0 - 2022-03-30
options.doctype
now defaults to true
renderFile
shortcode to render_jsx
. The name conflicts with Eleventy's official "render" plugin.FAQs
An Eleventy plugin for rendering JSX/TSX as HTML, with Preact
The npm package @binyamin/eleventy-preact receives a total of 0 weekly downloads. As such, @binyamin/eleventy-preact popularity was classified as not popular.
We found that @binyamin/eleventy-preact 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.