course

HTML: Preprocessor Pug

2 students
Course updated 25 July 2023
Course HTML: Preprocessor Pug
$49 per month
for all Hexlet's courses
Sign up
  • In-browser editor for exercises
  • Permanent access to theory
  • Asynchronous learning

Included in the course

8 lessons (video or text)
7 exercises in the IDE
25 quizzes
Assistance in Discussions on the website
Access to other courses of the our platform

What you'll learn

  • Mark up the page using Pug syntax
  • Include files and plugins
  • Use JavaScript to add logic to compile a template
  • Create mixins to reuse code snippets

Description

The course is devoted to the Pug HTML preprocessor, the main purpose of which is to speed up development and facilitate work with application structure. Pug allows you to add new functionality to page layout: plugins and files, templates, mixins, interaction with JS. This allows you to optimize your work with the layout and reduce the number of errors in it.

Course program

Estimated time: 9 hours
  • 1

    Introduction

    Learning about the goals and structure of the course
  • 2

    Installation

    Installing the Pug preprocessor and compiling the first file
  • 3

    Tags and content

    Learning to add tags, attributes, and content with Pug

    quiz

    exercise

  • 4

    Connecting files

    Learning how to connect Pug files and work with additional modules that allow you to process data in different formats

    quiz

    exercise

  • 5

    JavaScript

    Learning to use JavaScript in the preprocessor, to work with interpolating variables and expressions, and add buffered and unbuffered code

    quiz

    exercise

  • 6

    Conditional constructions

    Learning about the conditional constructs (if, else, unless)

    quiz

    exercise

  • 7

    Cycles

    Learning how to loop through arrays and objects using Pug loops

    quiz

    exercise

  • 8

    Mixins

    Learning how to create mixins to reuse a layout within Pug

    quiz

    exercise

  • 9

    Additional resources

    Some materials the Hexlet team have picked up. This will give you a more in-depth understanding of the topic

Challenges

We recommend working on these challenges after completing the course. They'll help you obtain more experience in programming and strengthen your new skills.

#
Challenge
completion rate

Recommended program

profession
Layout with the latest CSS standards
5 months
from scratch
under development
Start at any time
profession
Development of front-end components for web applications
10 months
from scratch
Start at any time
profession
new
Developing web applications with Django
10 months
from scratch
under development
Start at any time