© Jörg Krause 2017

Jörg Krause, Programming Web Applications with Node, Express and Pug , 10.1007/978-1-4842-2511-0_7

7. Language Components of Pug

Jörg Krause

(1)Berlin, Germany

In the following, you find a systematic language overview. The entrance to the available online information can be found on [Github] ( https://github.com/Pugjs/Pug ).

Doctype

The typical HTML 5 Doctype is written as follows:

1   doctype html

The produced HTML then looks as follows:

1   <!DOCTYPE html>

Short Spellings

Because of the frequent use of Doctypes there are a few short spellings .

1   doctype html

The produced HTML then looks as follows:

1   <!DOCTYPE html>1   doctype xml

The produced HTML then looks as follows:

1   <?xml version="1.0" encoding="utf-8" ?>1   doctype transitional ...

Get Programming Web Applications with Node, Express and Pug 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.