<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Node.js - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/node.js/</link><description>Node.js - 标签 - 研发日志 · R&amp;D Log</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>whutluohui@gmail.com (小智晖)</managingEditor><webMaster>whutluohui@gmail.com (小智晖)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Wed, 11 Jun 2025 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/node.js/" rel="self" type="application/rss+xml"/><item><title>Pug：高性能 JavaScript 模板引擎入门</title><link>https://rd163.visword.com/posts/js-template-engine-pug/</link><pubDate>Wed, 11 Jun 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/js-template-engine-pug/</guid><description>&lt;p>Pug 是一款用 JavaScript 实现的高性能模板引擎（template engine），同时支持 Node.js 与浏览器环境，语法深受 Haml 启发。它通过缩进（indentation）而非闭合标签来组织 HTML 结构，让模板代码更简洁、更具可读性。官方仓库 &lt;a href="https://github.com/pugjs/pug" target="_blank" rel="noopener noreferrer">pugjs/pug&lt;/a> 的描述是「robust, elegant, feature rich template engine for Node.js」，目前最新稳定版本为 3.0.x，采用 MIT 协议开源。&lt;/p></description></item></channel></rss>