Answer the question
In order to leave comments, you need to log in
How to compile selfclosed tags to PUG?
Good day,
there are: PUG files
I collect the output using gulp , the gulp-pug plugin
Task (it is hardly needed, but still) looks like this:
gulp.task('pug:build', function() {
return gulp.src(path.src.pug)
.pipe(pug())
.pipe(gulp.dest(path.build.html))
.pipe(reload({stream: true}));
});
<meta />
<input />
<img />
<meta>
<input>
<img>
doctype basic
For example, whether self-closing tags end with /> or > depends on whether HTML or XML is specified.
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