8000 HTML: Lacks go action support · Issue #976 · tdewolff/minify · GitHub
[go: up one dir, main page]

Skip to content

HTML: Lacks go action support #976

Open

Description

@Joey574

Go actions in the form {{ range . }} and others, are stripped by the minifier.

Input

<label></label>
<select name="" id="">
  {{range .}}
    <option value="{{.}}">{{.}}</option>
  {{else}}
    <option disabled>No options available</option>
  {{end}}
</select>

Results in

<label></label><select><option value={{.}}>{{.}}<option disabled>No options available</select>

Activity

  1. Joey574 commented on May 22, 2026

    @Joey574
    Author

    I'm using v2.24.13-19-g80940e9 and specifically using it as a command line tool, I've just opened a pull request with a small shim to support cli template delims

    #977

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0