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.
gulp-art-tpl
Advanced tools
A gulp plugin for art-template.
用于解析 art-template
模板引擎语法的gulp插件。它能让你快速在 Gulp 工作流中处理 art-template 文件。
npm install --save-dev gulp-art-tpl
const gulp = require('gulp')
const template = require('gulp-art-tpl')
const rename = require('gulp-rename')
gulp.task('build:html', function() {
gulp.src('./src/*.{art,html,ejs}')
.pipe(template({
title: 'art-template',
author: 'Mervin'
}))
.pipe(rename({
extname: '.html'
}))
.pipe(gulp.dest('dist/'))
})
<!-- demo.html -->
<div>
<h1>{{title}}</h1>
<p>{{author}}</p>
</div>
<!-- or -->
<div>
<h1><%= title %></h1>
<p><%= author%></p>
</div>
Output:
<div>
<h1>art template</h1>
<p>Mervin</p>
</div>
art-template
同时支持标准语法和原始语法;- 原始语法兼容
EJS
,LoDash
模板。
template(data, options)
需要渲染的数据
type
- object
编译选项,具体查看 template.defaults
type
- object
FAQs
A gulp plugin for art-template. 解析 art-template 模板引擎语法的gulp插件.
The npm package gulp-art-tpl receives a total of 1 weekly downloads. As such, gulp-art-tpl popularity was classified as not popular.
We found that gulp-art-tpl 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.