I'm using node.js
with twig
as template engine and I need to add some html when a button is clicked, I tried to add the include using javascript on the frontend this way
$('#add-question').on('click',function(){
$('#questions-container').append("{% include './create-question.twig' %}");
})
But append the literall text, Its possible to include a twig template inside another this way or similar?