O'Reilly logo

Mastering Internet of Things by Peter Waher

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

Providing menus using the Master/Detail model

The Markdown engine supports a Master/Detail model when rendering HTML output. Content is typically provided in the Detail pages. Menus on the other hand are provided in the Master pages. The Master pages are shared between multiple Detail pages and can therefore act as placeholders for a menu system. When writing a content page, define the Master page using the Master metadata tag:

Master: Master.md 

In the Master page, define where the Detail page is to be introduced, by referring to the Details metadata tag using the [%Details] construct. Master pages can complement the metadata provided by Detail pages, by providing their own set of metadata tags.

The following shows the default menu in

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