awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
a-h avatar

a-h/templ

0
View on GitHub↗
10,358 estrellas·360 forks·Go·MIT·4 vistastempl.guide↗

Templ

Templ is a type-safe HTML templating engine and UI framework for Go. It provides a system for building reusable HTML components that compile into Go code for server-side rendering, ensuring type safety and compile-time validation of data and logic.

The project features a dedicated language server that provides autocomplete and syntax validation for template files within supported code editors. It employs compile-time code generation to transform a custom template language into Go source code, enabling the creation of modular HTML fragments and logic blocks.

The framework includes automated security mechanisms to prevent cross-site scripting through HTML escaping, CSS class and value sanitization, and resource URL validation. It supports various output targets, including streaming content to response writers for web interfaces or producing standalone files for static site generation.

A command line interface is provided to handle the generation of Go source code and the formatting of markup and template files.

Features

  • Compile-Time Code Generation - Transforms a custom template language into type-safe Go source code during the build process.
  • HTML Templating Engines - Implements a type-safe HTML templating engine that compiles templates into Go code for server-side rendering.
  • Template Compilation Tools - Transforms custom template files into type-safe functions that return renderable HTML components during the build phase.
  • HTML Compilation - Compiles a custom templating language into Go source code to produce type-safe user interfaces.
  • Go Code Generators - Transforms template files into idiomatic and type-safe Go source code.
  • Component Compilers - Compiles markup and logic into Go functions that render HTML using loops and conditionals.
  • Cross-Site Scripting Prevention - Automatically escapes user-provided data in HTML attributes and tags to block script injection.
  • XSS Protections - Provides built-in sanitization and encoding to prevent cross-site scripting attacks during HTML rendering.
  • Component Composition - Organizes user interfaces into reusable functions and types that can be nested to build complex pages.
  • Reusable UI Components - Enables the construction of reusable HTML fragments and modular interface elements.
  • HTML Response Renderers - Provides capabilities to write type-safe templates directly to a response writer for delivering web content.
  • Markup Compilers - Transforms declarative HTML-like syntax into optimized, type-safe component structures at build time.
  • Server-Side Rendering - Generates HTML dynamically on the server to serve content to clients.
  • Type-Safe UI Frameworks - Offers a UI framework that ensures type safety and compile-time validation for HTML components.
  • Web Components - Provides a system for creating a library of modular HTML fragments and logic blocks to compose web pages.
  • Web Framework Integrations - Enables rendering dynamic HTML templates within various HTTP routing systems to serve content to web clients.
  • Static Page Rendering - Produces standalone HTML files optimized for deployment on static hosting environments.
  • Language Server Protocol Implementations - Implements the Language Server Protocol to provide real-time syntax highlighting and autocomplete within code editors.
  • Language Servers - Implements the Language Server Protocol to enable autocomplete and syntax validation within supported code editors.
  • URL Protocol Sanitizers - Validates URL attributes to remove JavaScript-based links and ensure only safe protocols are used.
  • Template Syntax Validators - Parses template files during the build process to ensure type safety and structural correctness.
  • Escaping Utilities - Automatically encodes dynamic text content to prevent cross-site scripting and malicious script injection.
  • UI Component Libraries - Templurn supports integrating collections of pre-made HTML elements like buttons and cards into a project.
  • Type-to-Component Mappings - Ties the user interface directly to data structures by returning components from methods attached to types.
  • Static HTML Generators - Outputs rendered component content as standalone static HTML files using standard writer interfaces.
  • Custom Rendering Logic - Allows implementing a component interface using raw code to manually control HTML output generation.
  • Static Site Generation - Renders Go components into standalone HTML files for deployment on static hosting environments.

Historial de estrellas

Gráfico del historial de estrellas de a-h/templGráfico del historial de estrellas de a-h/templ

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Templ

Proyectos open-source similares, clasificados según cuántas características comparten con Templ.
  • facebook/reactAvatar de facebook

    facebook/react

    245,669Ver en GitHub↗

    React is a JavaScript library for building user interfaces based on a component-driven architecture and unidirectional data flow.

    JavaScriptjavascriptuifrontend
    Ver en GitHub↗245,669
  • mde/ejsAvatar de mde

    mde/ejs

    8,105Ver en 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
    Ver en GitHub↗8,105
  • microsoft/fastAvatar de microsoft

    microsoft/fast

    9,661Ver en GitHub↗

    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

    TypeScript
    Ver en GitHub↗9,661
  • vugu/vuguAvatar de vugu

    vugu/vugu

    5,000Ver en GitHub↗

    Vugu is a Go WebAssembly UI library and framework used to build type-safe, component-based single-page applications. It functions as a single-file component framework that bundles markup, styles, and logic into modular units, utilizing a virtual DOM engine to synchronize state changes with the browser output. The project features a Go component generator that converts custom UI templates into executable Go source code at compile time. It distinguishes itself through a WebAssembly-based runtime that executes application logic as a compiled binary in the browser and a server-side rendering tool

    Goframeworkgogui
    Ver en GitHub↗5,000
Ver las 30 alternativas a Templ→

Preguntas frecuentes

¿Qué hace a-h/templ?

Templ is a type-safe HTML templating engine and UI framework for Go. It provides a system for building reusable HTML components that compile into Go code for server-side rendering, ensuring type safety and compile-time validation of data and logic.

¿Cuáles son las características principales de a-h/templ?

Las características principales de a-h/templ son: Compile-Time Code Generation, HTML Templating Engines, Template Compilation Tools, HTML Compilation, Go Code Generators, Component Compilers, Cross-Site Scripting Prevention, XSS Protections.

¿Qué alternativas de código abierto existen para a-h/templ?

Las alternativas de código abierto para a-h/templ incluyen: facebook/react — React is a JavaScript library for building user interfaces based on a component-driven architecture and unidirectional… mde/ejs — EJS is a JavaScript templating engine used to generate HTML by embedding executable JavaScript logic and dynamic data… microsoft/fast — FAST is a web components framework and declarative UI library used to build adaptive user interfaces. It functions as… vugu/vugu — Vugu is a Go WebAssembly UI library and framework used to build type-safe, component-based single-page applications.… lit/lit — Lit is a library for building lightweight, interoperable web components. It provides a base class that leverages… reactjs/react.dev — React is a JavaScript library for building user interfaces through the composition of modular, self-contained…