1 个仓库
Conversion of template sources into standalone JavaScript modules to eliminate runtime compilation overhead.
Distinct from Distribution Module Compilation: Specifically targets templates being compiled into JS modules, whereas the parent is for general distribution module compilation.
Explore 1 awesome GitHub repository matching programming languages & runtimes · Pre-Compiled Template Modules. Refine with filters or upvote what's useful.
doT 是一个编译型 JavaScript 模板引擎和渲染系统,用于为浏览器端界面和 Node.js 服务端环境生成动态文本和 HTML。它将模板字符串转换为可执行的 JavaScript 函数,以在不同运行时环境中产生文本输出。 该系统专注于在构建时将模板源文件预编译为独立的 JavaScript 模块。此过程消除了运行时编译开销,提高了执行速度,并防止了恶意代码注入。 该引擎支持使用条件语句和数组迭代器的逻辑插值,以及创建可复用的局部模板(partials)和宏。其他能力包括空格控制、自定义分隔符配置以及自动将目录结构映射到模板标识符的能力。
Pre-compiles template sources into standalone JavaScript modules to eliminate runtime compilation overhead and increase security.