6. Promoting discoverability

The isomorphic web application architecture promotes discoverability, since it can easily provide well-formed HTML content. Keep in mind that the rendered output of Go templates is HTML.

With an isomorphic template renderer, HTML content is easily rendered on the client side and the server side. This means that we can provide well-formed HTML content for traditional search engine bot crawlers that simply scrape web page content, as well as for modern search engine bot crawlers that may be equipped with a JavaScript runtime.

Another means by which the isomorphic web application architecture promotes discoverability is that well-formed URLs can be defined by the application's route handlers (both on the server side and client side) and these URLs can easily be indexed by search engine bot crawlers.

This is possible because the route handler implemented on the client side makes use of the web browser's History API to match the same routes that are defined on the server side. For example, the /product-detail/swiss-army-knife route for the Swiss Army Knife product detail page can be registered by both the server-side and the client-side routers.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.86.211