A Closer Look at the Sitemap
The best way to introduce a new concept such as the sitemap is to start with an example you’re familiar with and then explain how it is built using the Cocoon architecture and, in particular, how the sitemap is configured to achieve this.
We will introduce the different types of components that are available and how they can be combined to build pipelines. Each pipeline then results in a document being generated, as you saw earlier.
The Hello World Example
Nearly all books start with the typical Hello World example. Because we don’t want to break this convention, we will do exactly the same. You will add your first Cocoon document—a simple function that produces the HTML output Hello World.
Open the sitemap with ...
Get Cocoon: Building XML Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.