awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
haml avatar

haml/haml

0
View on GitHub↗
3,834 stars·585 forks·Ruby·MIT·6 vueshaml.info↗

Haml

Haml is a Ruby HTML template engine and server-side rendering library. It functions as an HTML markup preprocessor that transforms a concise, indentation-based shorthand syntax into standard HTML and XHTML markup.

The system uses hierarchical whitespace instead of explicit closing tags to define the structure of documents, reducing boilerplate during markup authoring. It integrates Ruby logic directly into templates to evaluate conditional statements, process dynamic data, and interpolate values.

The engine provides tools for managing element attributes through hashes, controlling output whitespace, and generating document doctypes. It also supports text filters for processing blocks of content and provides integration as a middleware module for web frameworks or as a command-line utility.

Features

  • HTML Markup Generators - Transforms a concise, indentation-based shorthand syntax into standard HTML tags and nested structures.
  • Indentation-Based Parsers - Uses hierarchical whitespace to determine element nesting and automatically generate closing tags.
  • Concise Markup Syntax - Provides a streamlined, indentation-based syntax for creating HTML structures with minimal boilerplate.
  • HTML Generation Engines - Compiles a concise, indentation-based shorthand syntax into standard HTML documents.
  • Dynamic Markup Rendering - Integrates backend Ruby logic into markup to render web pages based on variables and conditional data.
  • Markup To HTML Converters - Transforms shorthand, indentation-based markup into standard HTML output.
  • Indentation-Based Nesting - Uses indentation to define element hierarchy and automatically generate corresponding opening and closing tags.
  • String-to-Code Execution - Integrates logic into templates by executing Ruby code to output results or run control statements.
  • HTML Compilation - Transforms shorthand, indentation-based syntax into standard HTML via a compiler.
  • Template Logic - Provides control structures within templates to conditionally render HTML elements based on Ruby logic.
  • Silent Logic Execution - Allows backend Ruby code to process data within a template without rendering output to the final document.
  • Indentation-Based Template Languages - Uses a hierarchical whitespace system instead of explicit closing tags to define the structure of HTML documents.
  • Text Interpolations - Embeds variables and Ruby expressions directly into text literals using shorthand interpolation syntax.
  • Server-Side Template Engines - Renders dynamic web responses on the server by injecting application data into HTML templates.
  • Dynamic Content Insertion - Injects dynamic calculated values and Ruby expression results into the output text stream.
  • Ruby - Injects and evaluates Ruby expressions directly within templates to produce dynamic content.
  • HTML Preprocessing - Transforms a simplified, indentation-based markup language into valid HTML or XHTML.
  • Ruby Template Engines - Implements a template system designed for the Ruby ecosystem that generates markup using embedded logic.
  • Server-Side Rendering Frameworks - Provides a framework for rendering web pages on the server by interpolating dynamic data before sending HTML to the client.
  • Shorthand Element Definitions - Creates HTML tags using a simple prefix to automatically generate matching opening and closing tags.
  • Template Logic - Provides syntax and control structures within templates to conditionally render content or output dynamic values.
  • Template Whitespace Control - Provides syntax markers to strip unnecessary blank lines and spaces from rendered templates.
  • External Filter Integrations - Integrates external processing engines to filter and transform text blocks before final markup injection.
  • Text Processing Filters - Enables the definition of custom filter classes to process text blocks before they are rendered.
  • Preprocessing Filters - Processes text blocks through external engines like Markdown or Sass before inserting them into the document.
  • Template Whitespace Control - Provides tools to control the surrounding or internal whitespace of tags for precise HTML formatting.
  • Shorthand Attribute Assignments - Uses hashes and CSS shortcuts to rapidly assign common HTML attributes and classes to elements.
  • Hash-to-Attribute Mapping - Provides a shorthand syntax for converting Ruby hashes into HTML attribute-value pairs.
  • Attribute Mapping - Enables the definition of HTML attributes using Ruby hashes with support for boolean values and recursive expansion.
  • Whitespace Preservation - Replace newlines with HTML entities in specific tags to prevent automatic indentation from altering output.
  • Web Framework Integrations - Offers middleware and adapters that connect the templating engine to various web frameworks.
  • Whitespace Control Systems - Prevent reformatting of indentation for whitespace-sensitive elements like pre and textarea.
  • Template Engines - HTML abstraction markup language.

Historique des stars

Graphique de l'historique des stars pour haml/hamlGraphique de l'historique des stars pour haml/haml

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Haml

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Haml.
  • slim-template/slimAvatar de slim-template

    slim-template/slim

    5,372Voir sur GitHub↗

    Slim is a concise, indentation-based template language and markup engine for generating HTML and XML. Designed for the Ruby ecosystem, it converts shorthand syntax into well-formed documents without the need for traditional closing tags. The engine functions as a multi-engine wrapper, allowing the integration of external rendering engines such as Markdown and Sass within a single template file. It also provides a command line interface for rendering templates and converting them between different markup formats. The system supports dynamic content generation through embedded Ruby logic, incl

    Ruby
    Voir sur GitHub↗5,372
  • shopify/liquidAvatar de Shopify

    Shopify/liquid

    11,811Voir sur GitHub↗

    Liquid is a secure template engine and markup language used to generate dynamic HTML or text by combining static templates with backend data. It functions as a web template renderer that transforms markup into final output while restricting available logic to prevent arbitrary code execution. The engine focuses on secure markup execution, providing a restricted environment where user-provided templates cannot access sensitive system data. It utilizes a safe evaluation sandbox to ensure that only a predefined set of instructions can be executed. The system includes capabilities for template s

    Ruby
    Voir sur GitHub↗11,811
  • mde/ejsAvatar de mde

    mde/ejs

    8,105Voir sur GitHub↗

    EJS is a JavaScript templating engine used to generate HTML by embedding executable JavaScript logic and dynamic data into template files. It functions as both a server-side template processor and a client-side rendering engine, allowing for the creation of dynamic markup in both backend and frontend environments. The engine supports the creation of modular web layouts through partial template inclusion, where smaller reusable components are inserted into parent pages. Users can modify the template syntax by defining custom delimiters to avoid conflicts with other languages. The project cove

    JavaScript
    Voir sur GitHub↗8,105
  • handlebars-lang/handlebars.jsAvatar de handlebars-lang

    handlebars-lang/handlebars.js

    18,640Voir sur GitHub↗

    Handlebars.js is a JavaScript templating engine and logic-less template library used to generate HTML or text by merging data objects with templates. It utilizes an abstract syntax tree parser to transform template strings into executable JavaScript functions. The system separates data from presentation by restricting complex logic to external helper functions rather than the template itself. It features a precompiled template compiler that converts templates into functions before deployment to increase execution speed and reduce startup latency. The engine covers a broad range of content ge

    JavaScripthandlebarsmustachetemplates
    Voir sur GitHub↗18,640
Voir les 30 alternatives à Haml→

Questions fréquentes

Que fait haml/haml ?

Haml is a Ruby HTML template engine and server-side rendering library. It functions as an HTML markup preprocessor that transforms a concise, indentation-based shorthand syntax into standard HTML and XHTML markup.

Quelles sont les fonctionnalités principales de haml/haml ?

Les fonctionnalités principales de haml/haml sont : HTML Markup Generators, Indentation-Based Parsers, Concise Markup Syntax, HTML Generation Engines, Dynamic Markup Rendering, Markup To HTML Converters, Indentation-Based Nesting, String-to-Code Execution.

Quelles sont les alternatives open-source à haml/haml ?

Les alternatives open-source à haml/haml incluent : slim-template/slim — Slim is a concise, indentation-based template language and markup engine for generating HTML and XML. Designed for the… shopify/liquid — Liquid is a secure template engine and markup language used to generate dynamic HTML or text by combining static… mde/ejs — EJS is a JavaScript templating engine used to generate HTML by embedding executable JavaScript logic and dynamic data… handlebars-lang/handlebars.js — Handlebars.js is a JavaScript templating engine and logic-less template library used to generate HTML or text by… emmetio/emmet — Emmet is a markup code generator and web development productivity toolkit. It serves as an expansion engine that… reactjs/react.dev — React is a JavaScript library for building user interfaces through the composition of modular, self-contained…