{"repo":"stackus/goht","free":true,"listed":false,"github":"https://github.com/stackus/goht","clone":"git clone https://github.com/stackus/goht.git","description":"A Haml, Slim, and EGO template engine for Go","language":"Go","stars":127,"topics":["golang","haml","html","templates","type-safe","language-server","language-server-protocol","lsp","slim"],"license":"MIT","category":"dev-tools","readme_excerpt":"GoHT (Go HTML Templates) A Haml, Slim, and EGO template engine and file generation tool for Go. Table of Contents - Features - Quick Start - Template Engines - Haml: Supported Haml Syntax & Features - Unsupported Haml Features - Slim: Supported Slim Syntax & Features - Unsupported Slim Features - EGO: Supported EGO tags - GoHT CLI - IDE Support - LSP - Library Installation - Using GoHT - Using GoHT with HTTP handlers - A big nod to Templ - The GoHT template - Template directives - GoHT Syntax - GoHT template differences - Go package and imports - Multiple templates per file - Doctypes - Indents - Inlined code - Rendering code - Attributes - Classes - Object References - Inlined Tags - Filters - Template nesting - Named Slots - Contributing - License Features - Haml syntax support with GoHT-specific differences documented below - Slim syntax support with GoHT-specific differences documented below - EGO support (EJS or ERB like syntax) - Templates are compiled to type-safe Go and not parsed at runtime - Multiple templates per file - Mix Go and templates together in the same file - Easy nesting of templates - Named slots for reusable template composition Quick Start First create a GoHT file, a file which mixes Go with Haml, Slim, or EGO templates using a .goht extension: Your next step will be to process the GoHT file to parse the GoHT code and generate the Go code using the GoHT CLI tool: Use the generated Go code to render HTML in your application: Which would serve the follow","default_branch":null,"files":null,"tree":[],"storefront":"/r/stackus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stackus/goht/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}