L
L
Lord_Dantes2018-05-29 15:34:05
HTML
Lord_Dantes, 2018-05-29 15:34:05

Include as value in variable?

Basically there is a code

-
    var db_array = [
        {
            iconball: 'include ../templates/icon-ball.svg',
        },
]

include ../templates/programm-box.pug
each val in db_array
span
        =val.iconball

The essence of the question is how to insert an include with a variable into the span not as text, but as code, thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Proskurin, 2018-05-29
@Lord_Dantes

include ../templates/programm-box.pug
each val in db_array
span!= val.iconball

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question