Overview
Jekyll Liquid Plus is an innovative gem designed to enhance Jekyll templating by introducing advanced Liquid tags for more efficient and smarter file handling. With a focus on backwards compatibility, it offers a redesigned set of features that streamline the process of including, rendering, and managing templates, ensuring that both developers and users can create more dynamic websites with ease. This gem simplifies the complexity of Liquid templating by improving file search capabilities and providing robust error reporting.
Whether you're a theme designer or a plugin creator, Jekyll Liquid Plus offers a range of new tags and functionalities that elevate your coding experience. From cascading file paths to conditional includes, this tool provides the flexibility needed to customize templates without altering original source files, making it an essential addition to any Jekyll project.
Features
- Redesigned Include Tag: The new include tag allows for multiple file paths to be searched, enhancing flexibility and enabling smoother file management.
- Cascading Paths: This feature helps embed the first file that exists, simplifying theme customization and user overrides without the need to edit core templates.
- Ternary Path Expressions: Simplifies file selection by permitting conditional expressions that can return different paths based on specific criteria.
- Conditional Includes: Reduces complexity by allowing the selection of partial files without requiring nested if statements, making code cleaner and more understandable.
- Variable Path Inclusion: Users can pass variables as file paths, adding versatility to include different templates or scripts based on their configuration settings.
- Graceful Error Handling: Improved error reporting ensures that users receive helpful feedback when a file isn't found, enhancing the development experience.
- Enhanced Render Capabilities: Similar to the include tag, the render tag provides advanced template embedding features with accessible local template variables, streamlining data presentation.