C
C
cosonicsq2020-07-05 20:49:48
HTML
cosonicsq, 2020-07-05 20:49:48

Why doesn't the layout change when I edit the code in the PUG html template engine?

We were given a test task to make layout according to one layout.

It was necessary to download the folder with the original project, install gulp, and write the command in the project folder. And Igulp watch

get this page in the browser :
5f020f7cdb35f605166130.png



extends includes/layout/layout.pug

block content
  p Тут пишеться HTML!


I changed it to this:

html(lang="ru")
  head
    meta(charset="utf-8")
    title= "Учимся работать с шаблонизатором Pug"
  body
      h1 Hello, World!


But nothing has changed on the page and everything is also displayed like this:

5f0211f4bf2fc367699575.png

Why is that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arseniy, 2020-07-05
@cosonicsq

Set up the galp config so that it compiles the code to html.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question