Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
metalsmith-engine-jstransformer
Advanced tools
A jstransformer engine for metalsmith-in-place and metalsmith-layouts.
A jstransformer engine for metalsmith-in-place and metalsmith-layouts
This engine allows you to render templates with jstransformer. Files will be transformed based on their extension, last extension first. Transformations are applied until there are no more applicable jstransformers left. Though its main purpose is rendering templates, any jstransformer compatible plugin can be used.
For example, install jstransformer-handlebars to enable the handlebars transformation:
$ npm install jstransformer-handlebars
metalsmith-engine-jstransformer
will detect which transformers you have installed and apply them.
Use the following build configuration:
var metalsmith = require('metalsmith')
var inPlace = require('metalsmith-in-place')
metalsmith(__dirname)
.use(inPlace())
.build(function(err){
if (err) throw err;
});
Source file src/index.html.hbs
:
---
title: The title
---
<p>{{title}}</p>
Results in build/index.html
:
<p>The title</p>
This is a simple example, but of course you can expand on this and use any jstransformers that you want to use. See metalsmith-in-place for instructions on how to pass options to jstransformer and see here to see which extensions match to which jstransformers.
MIT
FAQs
A jstransformer engine for metalsmith-in-place and metalsmith-layouts.
The npm package metalsmith-engine-jstransformer receives a total of 0 weekly downloads. As such, metalsmith-engine-jstransformer popularity was classified as not popular.
We found that metalsmith-engine-jstransformer 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.