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 template engine

The major responsibility of a template engine is to take one or more template files, along with a data object, and generate text output. In our specific field of study, isomorphic web development, this text output is in the HTML format and can be consumed by web clients. In Go, the html/template package can be considered as our template engine.

The template engine is activated by the route handler, when it's time to serve the HTML output. From the perspective of an isomorphic web application, the template engine can be activated by both the server-side route handler and the client-side route handler.

When the template engine is activated from the server-side route handler, the produced HTML web page output is written out ...

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