书栈网 · BookStack 本次搜索耗时 0.025 秒,为您找到 270 个相关结果.
  • Pug

    Pug 例 1 - Just index.pug 例 2 - index.pug, index.js and style.css 例 3 - Pug with locals 更新 locals 对象需要重新执行 parcel 注意无声的错误 三种类型的配置文件 不能在 pug.config.js 文件中使用 import 语句 添加脚本到 pa...
  • Migrating to Pug 2

    Migrating to Pug 2 Project Rename Removed Language Features Legacy Mixin Call Attribute Interpolation Prefixed each Syntax Removed API Properties doctype nodes selfClosing ...
  • 迁移到 Pug v2

    迁移到 Pug v2 ~~ Migrating to Pug 2 新的名称 ~~ Project Rename 已经移除的语言特性 ~~ Removed Language Features 传统 Mixin 调用 ~~ Legacy Mixin Call 属性嵌入 ~~ Attribute Interpolation 带有前缀的 each 语法 ~~...
  • 简体中文版 Pug 文档

    简体中文版 Pug 文档 Simplified Chinese documentation of Pug 简体中文版 Pug 文档 本版本库存有简体中文版的 Pug 文档,可访问 https://pugjs.org/zh-cn/ 查看。 Simplified Chinese documentation of Pug This reposit...
  • 7. 视图与模板:Pug 和 EJS

    1561 2018-10-19 《Express 实战》
    视图与模板:Pug 和 EJS Express视图特性 简单的视图渲染示例 复杂的视图渲染 视图引擎的 Express 兼容设置:Consolidate.js EJS中你必须要了解的东西 EJS语法 在已有 EJS 文件中嵌入其他 EJS 模版 添加你自己的过滤器 Pug 中你必须要了解的东西 Pug 语法 Pug 的布局 Pug 的 M...
  • 11. 如何使用 pug (jade) 作为 HTML 的模板

    首先肯定会问什么是 pug ,如果是 nodejs 程序员的话,肯定听过 jade 吧,pug 就是 从 jade 改名过来的。 说白了,它就是可以让你以更好的语法来写 html 。 下面看看例子就会清楚的。 现在我们就要代替之前的 src/index.html 改用 pug 语法来写。 首先把 src/index.html 改名叫 sr...
  • 入门指南

    入门指南 ~~ Getting Started 安装 ~~ Installation 概要 ~~ Overview 入门指南 ~~ Getting Started 安装 ~~ Installation Pug 可以通过 npm 获得: $ npm install pug 概要 ~~ Overview Pug 的渲染操作一般来说...
  • React Integration

    1049 2020-03-09 《Pug.js v2.0 Document》
    babel-plugin-transform-react-pug Usage Syntax Basic example How to pass functions and other primitives Define local variables and use javascript in attributes Interpolation Es...
  • API 参考文档

    API 参考文档 ~~ API Reference 选项 ~~ Options 方法 ~~ Methods pug.compile(source, ?options) pug.compileFile(path, ?options) pug.compileClient(source, ?options) pug.compileClientWithDep...
  • Reference

    API Reference Tip Options Methods pug.compile(source, ?options) pug.compileFile(path, ?options) pug.compileClient(source, ?options) pug.compileClientWithDependenciesTracked(s...