O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The web template system

In web programming, a web template is a text document that describes the format in which a web page should appear to the user. In this book, we will focus on web templates from Go's html/template package—the package that implements data-driven templates suitable for use in web applications.

Web templates (we'll refer to them simply as templates moving forward) are text documents, that are typically implemented in HTML, and may contain special commands that are embedded inside of them. In Go, we refer to these commands as actions. We denote actions in templates by placing them inside a pair of opening and closing double curly braces—{{ and }}.

Templates form the means to present data to the user in a manner that is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required