Javascript-форум (https://javascript.ru/forum/)
-   Node.JS (https://javascript.ru/forum/node-js-io-js/)
-   -   for in pug проблема (https://javascript.ru/forum/node-js-io-js/81005-pug-problema.html)

riaron 12.09.2020 13:44

for in pug проблема
 
как сделать что если td с rowspan ом первый то добавить переменную
for smart in smartphopneList
				tr
					td(class='leftitem')
						img(src=''+smart.photo class='imgind')
						p= "Производитель: " + smart.prod+' Модель: ' + smart.name+' Цена: ' + smart.price
					td(class='rightitem')
						p=smart.description	
					td
						p
							a(href='/somesmart/?id='+smart.id style='color:white;background-color:orange;padding:4px;border-radius:3px;font-weight:bold;')='Подробнее'
						p
							a(href='/basket/?id='+smart.id style='color:white;background-color:green;padding:4px;border-radius:3px;font-weight:bold;')='В Корзину'
					td(rowspan=smart.len style="border:1px solid black" id='menu')


Часовой пояс GMT +3, время: 15:06.