Type safety with HTML templating?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • templ

    A language for writing HTML user interfaces in Go.

  • That's one of the reasons I wrote https://github.com/a-h/templ which does support strongly typed templates, has autocomplete, and is fairly close to JSX.

  • go-formatter

    A curated list of awesome Go frameworks, libraries and software

  • There are some templating languages that compile to go code and in that way provide type safety. Check the list of templating languages on the awesome go GitHub: https://github.com/avelino/awesome-go

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • turbo

    The speed of a single-page web application without having to write any JavaScript (by hotwired)

  • For dynamic updates to to HTML from within the browser, it has built-in support for Hotwire's Turbo Frames (https://turbo.hotwired.dev/)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts