Answer the question
In order to leave comments, you need to log in
How to correctly pass parameters to pug?
Hello!
There is a js file in which I include the pug template:
var $blockWithPapams = require('block.pug')({
hosting: {
title: 'title',
content: content, // тут я что-то передаю пагу ( не просто текст, а например html или какой-то блок )
},
});
div.block
p.self.title
div.content
// а тут мне нужно вывести content, переданный из js
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question