5 个仓库
Logic-driven rendering that displays or hides template sections based on the evaluation of expressions.
Distinct from Conditional Section Rendering: Existing candidates focus on file generation or C++ compile-time resolution, not runtime web template logic.
Explore 5 awesome GitHub repositories matching web development · Conditional Template Rendering. Refine with filters or upvote what's useful.
Derby 是一个同构 MVC 框架和实时数据同步引擎,专为构建协作应用程序而设计。它作为一个双向数据绑定库和模板引擎,在 Node.js 和浏览器之间共享同一代码库,以同步客户端和服务器之间的状态。 该框架的特色在于使用操作转换(operational transformation)自动解决数据冲突,从而实现实时共享编辑和多用户协作。它采用差异化状态突变模型,通过执行深度相等性检查来最小化更新,确保仅传播已更改的值。 该平台涵盖了广泛的功能,包括响应式状态管理、同构路由和模块化 UI 组件开发。它提供了用于管理嵌套数据路径、执行同构渲染以实现快速初始加载,以及与服务器中间件集成的工具。 该系统使用 TypeScript 实现。
Displays specific sections of a template based on whether an expression evaluates to true or false.
Scriban 是一个用于动态文本生成的文本模板库和 .NET 脚本引擎。它既是一个模板处理器,也是一个安全的脚本沙箱,通过限制对象暴露来提供安全的执行环境,从而防止未经授权的代码执行。该项目还包含一个抽象语法树模板解析器,支持对模板进行程序化分析和修改。 该引擎内置了专门的 Liquid 模板引擎及兼容模式,能够解析、执行并转换以 Liquid 语法编写的模板。其独特之处在于成员暴露过滤系统,允许开发者重命名、隐藏或过滤对象属性,从而控制模板内的数据访问方式。 该库涵盖了广泛的功能,包括异步模板渲染、条件逻辑和集合迭代。它提供了用于数据操作的内置工具,如数学运算、JSON 转换、日期时间算术,以及基于正则表达式的强大文本处理功能。开发者还可以通过定义自定义函数和集成外部类来进一步扩展引擎功能。 该项目提供了一个安全的 API 接口,支持通过 Native AOT 发布为原生二进制文件。
Processes templates with logic and expressions to produce dynamic text output.
Scriban 是一个 .NET 文本模板引擎和嵌入式脚本语言,用于动态文本生成。它作为一个抽象语法树 (AST) 操作工具和模板解析器,允许将脚本转换为可遍历的树结构,以便进行分析、修改和渲染。 该引擎专为 Native AOT 兼容性而设计,利用无反射 API 在裁剪后的环境中执行模板。它还为 Liquid 模板提供了专门的解析器和转换系统,支持在 .NET 中迁移和执行 Liquid 脚本。 该项目涵盖了广泛的功能,包括用于安全运行脚本的沙箱代码执行,以及用于数据转换的管道系统。它包含用于操作字符串、数组、日期和数学运算的全面工具,并支持 JSON 数据转换和正则表达式。 开发者可以通过自定义函数绑定、对象集成和可自定义的成员名称映射来扩展引擎功能。
Evaluates templates containing variables, loops, and conditionals to produce a final string output.
OneManager-php is a PHP-based cloud file manager designed to index and navigate files stored in OneDrive. It provides a web interface for browsing remote directories and managing uploads and downloads via the Microsoft Graph API. The project focuses on reducing server load by generating direct upload and download links, shifting data transfer from the application server to the cloud provider. It supports custom presentation through a markdown-based cloud directory and the ability to render specific HTML files as homepages. The system is built with a stateless execution model, making it compa
Implements logic-driven rendering to select between directory listings, custom HTML, or markdown views based on file presence.
This package provides a comprehensive authorization framework for Laravel applications, enabling the management of user roles and granular permissions through a database-driven system. It allows developers to define access levels and assign them to users, ensuring that security policies are enforced consistently across the entire application. The system distinguishes itself through a hierarchical inheritance model, where permissions automatically propagate from lower-tier roles to higher-tier roles based on a numerical level system. It includes a dedicated administrative web interface that al
Supports template-level directives to dynamically render interface components based on user authorization status.