The documentation of the templ generate command refers to the -sourceMapVisualisations argument. Using it generates the following error.
$ templ generate -sourceMapVisualisations .
flag provided but not defined: -sourceMapVisualisations
However, using the more conventionally named -source-map-visualisations argument successfully generates HTML files to visualize the templ code and its corresponding Go code, as shown below.
The documentation of the
templ generate
command refers to the-sourceMapVisualisations
argument. Using it generates the following error.However, using the more conventionally named
-source-map-visualisations
argument successfully generates HTML files to visualize the templ code and its corresponding Go code, as shown below.To resolve this, we can update the documentation to refer to the
-source-map-visualisations
argument instead.