![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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 2 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.