D
D
drtvader2016-08-03 14:43:08
Pug
drtvader, 2016-08-03 14:43:08

How to pass html tags in JADE mixin?

Hey!
How to pass tags in a mixin? For example
I need

- data = {"items": [{"title": "Слот для карты памяти", "text": "Нет"}, {"title": "Интерфейсный разъем", "text": "Lightning"}, {"title": "Разъем для наушников", "text": "Есть"}, {"title": "Датчики", "text": "Акселерометр (датчик ускорения) Барометр (датчик атм. давления) Гироскоп Датчик освещенности Датчик приближения Компас Сканер отпечатков пальцев"}]}

Murzilka says about Tag Interpolation, but this option does not work. #[
] Generates as text.
Let's say I need to add a BR between Accelerometer (acceleration sensor) and Barometer (atm. pressure sensor).
How can I do this in an existing mixin?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
arsenty, 2016-08-11
@drtvader

mixin name(text)
tag!=text
+name("text with tags ")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question