Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
easytemplatejs
Advanced tools
High-performance, small, pure, JavaScript template engine. Support:`CommonJS`, `AMD`, `CMD`, `Node.js`, `Express`, `koa`, `<etj-script>`, `<etj-style>`.
EasyTemplateJS(EasyTemplate JavaScript)是一款超高性能,小巧纯粹,功能全面的 JavaScript 模板引擎。支持浏览器环境, Node.js 环境,Express 和 Koa 框架。
EasyTemplateJS(EasyTemplate JavaScript) is an ultra-high performance, compact, full-featured JavaScript template engine. Support for browser environment, Node.js environment, Express framework and Koa framework.
中文
超高性能,预先静态编译,小巧,纯粹
灵活自定义
支持转义输出表达式
支持 out 输出
支持内嵌 JavaScript 脚本(<etj-script>...</etj-script>
)和 CSS 样式脚本(<etj-script>...</etj-script>
)
模块化支持:CommonJS
, AMD
, CMD
, Node.js
Node.js 环境支持
Express
, koa
框架支持
npm, Bower 支持
English
Ultra-high performance, pre-static compilation, small, pure
Flexible customization
Escape output expressions are supported
Support out output
Support embedded JavaScript (<etj-script>...</etj-script>
) and CSS(<etj-script>...</etj-script>
)
Module support:CommonJS
, AMD
, CMD
, Node.js
Node.js enviroment support
Express
, koa
framework support
npm, Bower support
从渲染性能上来说, EasyTemplateJS 和 artTemplate 都是使用预先静态编译原理,可以说已经接近的性能极限,是当前性能最高的模板引擎。一些较差的引擎不仅可能影响客户体验,还会会引起浏览器崩溃或异常终止,百度的引擎则性能较差,对浏览器渲染执行影响巨大。
From the rendering performance, EasyTemplate and artTemplate are using pre-static compilation principle, can be said to have close to the performance limit, is the highest performance of the template engine. Some poor engine may not only affect the customer experience, but also cause the browser to crash or abnormal termination, Baidu engine performance is poor, the implementation of the browser rendering a huge impact.
Download install/下载安装
<script type="text/javascript" src="easy.templatejs.min.js"></script>
Bower install/Bower 安装
bower install easytemplatejs --save
<script src="bower_components/easytemplate/dist/easy.templatejs.min.js" type="text/javascript" charset="utf-8"></script>
Npm install/Npm 安装
npm install easytemplatejs
var Et = require('easytemplatejs');
如果您有更好意见,建议或想法,请联系我。
English detailed documentation
If you have more comments, suggestions or ideas, please contact me.
Email:inthinkcolor@gmail.com
支付宝钱包扫一扫捐助:
我们相信,每个人的点滴贡献,都将是推动产生更多、更好免费开源产品的一大步。
感谢慷慨捐助,以支持服务器运行和鼓励更多社区成员。
We believe that the contribution of each bit by bit, will be driven to produce more and better free and open source products a big step.
Thank you donation to support the server running and encourage more community members.
FAQs
High-performance, small, pure, JavaScript template engine. Support:`CommonJS`, `AMD`, `CMD`, `Node.js`, `Express`, `koa`, `<etj-script>`, `<etj-style>`.
We found that easytemplatejs 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.