17 个仓库
Logic for displaying UI elements based on runtime conditions.
Distinguishing note: Focuses on control flow expressions within markup.
Explore 17 awesome GitHub repositories matching web development · Conditional Rendering. Refine with filters or upvote what's useful.
React 是一个用于构建用户界面的 JavaScript 库,采用组件化架构和单向数据流。
Uses standard control flow statements to determine which UI elements are rendered.
Yew is a framework for building front-end web applications using Rust and WebAssembly. It provides a component-based architecture that allows developers to create modular, reusable user interface elements that manage their own state and logic. By compiling code into binary modules, the framework enables high-performance execution within modern browser environments. The framework distinguishes itself through a macro-based markup language that transforms declarative, HTML-like syntax into strongly-typed component structures during compilation. It features a robust server-side rendering engine t
Renders components conditionally by embedding control flow expressions directly within the markup.
Crystal is a statically typed, compiled programming language designed for high performance and memory safety. It leverages an LLVM-based compiler to translate source code into optimized machine-executable binaries, while its type-inference-based static analysis enforces strict safety rules during the build process. The language distinguishes itself through a fiber-based concurrent runtime that manages lightweight execution units for asynchronous input and output without blocking the main process. It also features a powerful compile-time macro system that allows for the inspection and transfor
Returns one of two values based on a boolean condition, providing a concise alternative to standard conditional blocks.
Mustache.js is a logic-less JavaScript templating engine and implementation of the Mustache specification. It merges data objects with text templates to generate formatted output, ensuring consistent rendering across different programming languages by forbidding complex logic within the templates. The system distinguishes itself by using a logic-less approach to data binding, relying on simple variable interpolation and conditional block rendering. It supports modularity through partial template inclusion and allows for extended functionality via lambda functions that transform blocks of temp
Implements logic for displaying or repeating template sections based on runtime data conditions.
Mitosis is a cross-framework compiler that transforms a single JSX-based source into native components for multiple frontend libraries simultaneously. It functions as a multi-target UI library builder, allowing developers to maintain a single source of truth for design systems while generating production-ready code for diverse environments including React, Vue, Angular, and Svelte. The system operates by parsing unified component code into an intermediate JSON representation, which serves as the foundation for all downstream framework generators. This architecture utilizes a visitor-based tra
Manages conditional rendering and list iteration using dedicated components to ensure compatibility across different target frameworks.
This project is a technical interview study guide and a markdown-driven static site designed to help developers prepare for coding screenings. It serves as a curated collection of common technical questions and expert answers, functioning as a comprehensive educational resource. The platform provides a structured curriculum and reference materials across several key domains. This includes a JavaScript language reference covering programming fundamentals, a frontend engineering curriculum focused on UI patterns and responsive design, and a web security knowledge base detailing attack vectors a
Provides examples of using ternary operators and logical expressions within markup to toggle visibility.
FAST is a web components framework and declarative UI library used to build adaptive user interfaces. It functions as a server-side rendering engine and design system implementation, enabling the creation of modular components based on web standards. The framework focuses on cross-framework component compatibility, allowing user interface elements to remain functional across different front-end frameworks and modern browsers. It implements a design language through a collection of pre-defined visual components to ensure consistency across professional applications. The system covers state-dr
Provides logic for displaying UI elements based on runtime conditions within markup templates.
Middleman is a Ruby-based static site generator and web framework used to transform templates and assets into standalone HTML, CSS, and JavaScript files. It functions as a multi-engine template processor and build tool, converting source markup into production-ready websites that can be hosted on any web server. The system is distinguished by a comprehensive asset pipeline that handles compression, minification, and fingerprinting to optimize web delivery. It features an extensible architecture with lifecycle hooks and a middleware-based request interception layer, allowing for the programmat
Provides logic to render specific content or execute code only when the project is in a particular environment state.
This is an interactive Python tutorial delivered as a collection of Jupyter notebooks. It is designed as a structured learning path for beginners, teaching fundamental language concepts through a sequence of lessons that combine explanatory text with runnable code cells and embedded practice exercises. Each notebook is a self-contained unit that introduces a topic, demonstrates it with a minimal code example, and then asks the learner to write code themselves, receiving immediate feedback from the browser-based execution environment. The curriculum is built on a progressive concept-stacking mo
Teaches ternary conditional expressions for concise value selection in Python.
From Java To Kotlin - Your Cheat Sheet For Java To Kotlin
Provides side-by-side comparisons of Java ternary operators and Kotlin if-else expressions.
Zizmor is a security linter and static analysis tool designed to audit GitHub Actions workflow files. It functions as a CI/CD security scanner that identifies security vulnerabilities, misconfigurations, and software supply chain risks within automation pipelines. The project distinguishes itself by providing an automated workflow remediator that applies security fixes to identified vulnerabilities. It also implements a language server for integration with code editors and supports a variety of analysis personas to scale the sensitivity and volume of reported findings. The tool covers a broa
Identifies pseudo-ternary expressions where a falsy true value causes the logic to fall through to the fallback.
Lancet 是 Go 标准库的全面扩展,提供了一系列可复用的函数和数据结构,旨在减少应用中的样板代码。它是一个跨多个领域的通用工具包,包括并发、安全、网络和函数式逻辑。 该项目的特色在于针对 Go 并发的专用工具包(如键控锁和基于通道的流处理),以及支持柯里化和函数组合的专用函数式编程套件。它还包含一个使用 AES、RSA 和 SM 标准实现对称和非对称加密的专用密码学库。 该库涵盖了广泛的功能领域,包括 LRU 缓存和二叉搜索树等高级数据结构、代数和统计数学计算,以及用于进程和文件管理的操作系统集成。它还提供了用于 HTTP 网络、日期和时间操作,以及集合代数和惰性流求值等高级数据处理的实用程序。
Provides ternary logic execution to return one of two values based on a boolean condition.
LeetCode-Swift is a collection of algorithm solutions written in Swift, designed for coding interview preparation. Each solution is implemented as a self-contained function with no external dependencies, making it easy to run and test. The repository organizes solutions by topic and company, and every file includes time and space complexity annotations, allowing quick evaluation of algorithmic efficiency. What sets this repository apart is its flat file structure and the way solutions are tagged with the companies that asked them in interviews, enabling targeted practice. All code resides in
Implements a stack-based evaluator for ternary conditional expressions using right-to-left traversal.
Poml is a prompt management framework and templating engine designed for authoring, versioning, and rendering structured prompts for large language models. It uses a semantic markup language to organize prompts into reusable templates, combining them with dynamic context and data to generate formatted inputs. The system distinguishes itself by decoupling core prompt logic from final presentation through a stylesheet-based approach. It provides a dedicated JSON schema output generator to enforce strict, machine-parsable model responses and a configuration interface for managing function tool s
Shows or hides prompt elements based on the truth value of a variable or expression.
Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a wide array of custom functions that can be injected into the engine to enable complex data manipulation and logic directly within templates. The project offers specialized capabilities for cryptography, including the generation of private keys, X.509 certificates, and secure password hashes. It also includes advanced logic extensions for semantic versioning comparison, ternary evaluations, and the resolution of environment variables from the host operating system. The library co
Implements ternary logic to return one of two values based on a boolean test.
这是一个 React Server Components 的实现,提供了一种将服务端渲染与客户端交互性相结合的全栈组件架构。它支持开发 Web 应用程序,其中用于数据获取的服务端组件和交互式客户端组件可以在同一个组件树中共存。 该系统专注于服务端与客户端的数据编排,允许跨网络边界执行服务端函数和数据库变更。它通过一种混合组件架构脱颖而出,将组件执行转移到服务端,从而减小客户端包大小并缩短初始加载时间。 该项目涵盖了广泛的功能,包括使用 Suspense 进行异步数据获取、自动组件记忆化(memoization)以及服务端渲染优化。它还包括用于管理复杂状态、协调资源加载以防止布局偏移,以及构建跨平台 Web 和移动应用程序的工具。 此外还提供了开发工具,用于在开发过程中检测不纯组件、分析模块依赖关系并检查组件层级。
Implements conditional rendering logic to display different UI elements based on runtime state expressions.
jscamp is a full-stack web development and education project focused on mastering JavaScript, TypeScript, and AI integration. It provides a structured curriculum and interactive exercises covering language fundamentals, frontend engineering, and backend API development. The project distinguishes itself through the implementation of autonomous AI agents capable of complex task automation, such as modifying files, managing servers, and executing API calls. It includes advanced AI development tools for conversational querying, real-time code suggestions, and automated repository analysis to gene
Implements logic for displaying or hiding UI elements based on runtime boolean conditions.