HTT Documentation

Setup

Installing HTT

HTT is available for all the major platforms:

  • Linux (x86-64, Arm64)
  • macOS (Apple Silicon)
  • Windows (x86-64, Arm64)

Head to the HTT releases page and pick the binary that matches your OS and architecture.

Syntax Highlighting

HTT uses a custom DSL (domain-specific language) for writing templates. Currently, there is syntax highlighting support for the following editors:

Visual Studio Code

  1. Open Visual Studio Code
  2. Open Extensions View:
    • Linux/Windows: CTRL+SHIFT+X
    • macOS: ⌘+SHIFT+X
  3. Search for "HTT Templating Language"
  4. Install

Neovim

The neovim plugin is hosted at the htt-nvim repository. You may install it using your regular neovim plugin manager. The repository itself shows how an entry would look for users of lazy.

Type-checking and completions

HTT can configure Lua Language Server, the most popular Lua LSP, such that it knows the HTT API.

Run htt --init-lsp-conf in the root directory of your project to generate the necessary (type-stub) files and configure the LSP. If you wish to write the files elsewhere, the -o/--out-dir flag can be used.