Pug features for Ada Lovelace
This page is rendered from index.pug and extends layout.pug.
Interpolation
Hello, Ada Lovelace. Your current plan is PRO.
The literal syntax is #{name}, which inserts escaped text into a line.
Conditionals
Welcome back, Ada Lovelace.
You are using the pro plan, so all examples are visible.
Loops and Mixins
-
Interpolation
Drop values into text with #{name} and escaped output.
ready -
Conditionals
Render different branches with if, else if, else, and case.
ready -
Loops
Repeat markup with each item in collection syntax.
ready -
Includes and extends
Compose pages from layouts and smaller partial files.
practice -
Mixins
Create reusable snippets that accept arguments.
ready
Included Summary
This section comes from _summary.pug. It can still read variables declared in index.pug, including Ada Lovelace and the feature count: 5.