[READ-ONLY] Mirror of https://github.com/andrioid/gastro. Server Side templates, combining Go (frontmatter) and html/template (body) with full LSP support gastro.andri.dk
golang lsp-server template-engine

Replace HTML-like component syntax with Go template actions, add Gastro website example master

Migrate component invocation from <Component /> / <Component>...</Component> to {{ render Component (dict ...) }} / {{ wrap Component (dict ...) }}...{{ end }}. Replace <slot /> with {{ .Children }}. This eliminates ambiguity between component invocations and HTML content, removes the need for escape directives, and aligns the template body closer to standard html/template syntax. Transformer rewritten with state-aware scanner for correct {{ end }} matching. Comment extraction prevents false regex matches inside {{/* */}} blocks. Old-syntax detection provides migration hints for {.Expr} prop syntax. Also adds examples/gastro -- an interactive documentation website showcasing the framework with landing page, 6 docs pages, live SSE demo, and Dockerfile. Fixes two pre-existing bugs: - Duplicate {{define}} names when same component-with-children used multiple times - Import extraction picking up imports inside backtick string literals