PUG HTML code example

Example 1: what is pug template engine

Pug is a template engine for Node and for the browser. 
It compiles to HTML and has a simplified syntax, which 
can make you more productive and your code more readable.
Pug makes it easy both to write reusable HTML, as well as
to render data pulled from a database or API.

Example 2: pug template

$ npm install pug --save

Example 3: html to pug

<!-- HTML TO PUG -->
<!-- https://html-to-pug.com/ -->

Example 4: pug templates includes

//- index.pug, Including Filtered text
doctype html
html
  head
    title An Article
  body
    include:markdown-it article.md

Example 5: pug to html

// See this website: https://pughtml.com/

Example 6: pug to html

// use https://pughtml.com/ for this