Skip to content

E0148: A template file has Go and no markup ​

The markup of a .vuka.html file is what follows its <script lang="go"> (in the Go-header form, from the first line beginning with < outside the Go). The file has none: it is Go alone.

Wrong ​

html
<!-- page.vuka.html -->
<script lang="go">
package pages

type Page struct {
	Title string
}

func (p Page) Upper() string { return strings.ToUpper(p.Title) }
</script>

Write the markup below the Go:

html
<!-- page.vuka.html -->
<script lang="go">
package pages

type Page struct {
	Title string
}
</script>

<h1>{Title}</h1>

or, when nothing renders, make it a .go file.

Released under the MIT License. Vuka builds on Go and its tools, which are made by the Go Authors. Vuka is not affiliated with Google or the Go project. Go is a trademark of Google LLC.