Answer the question
In order to leave comments, you need to log in
How to display Jade block in index.html in a loop?
Hello! I decided to finally start using Jade for layout of html files.
I immediately ran into the problem of outputting a block in a loop. Previously, I just used this construction to display blocks of the same type:
<?php
$n = 6;
for ($i=0; $i < $n; $i++) {
include('assets/item-n.html');
}
?>
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