Version: v0.8.0 - Beta.  We welcome contributors & feedback.

Page

The Page module makes it easy to build an HTML5 document according to best practices for performance, social sharing, and search engine ranking.

All methods return the object itself, so method calls can be chained together.

Once created, it must be sent to the browser via Output.sendPage.

$page = Page.create({
    icon: url'/images/icon.png'
    css: [
        url'/assets/app.css'
    ]
})

$page.setTitle('My Page')
     .setMain(mainHtml())

Output.sendPage($page)

Methods

Basic

Content Setters

Other Setters