Nunjucks twig embed

I am using the template rendering branch in symfony and nunjucks to render the same templates in javascript. Twig has an awesome feature called embed, which is a combination between include and extends. Is there a function in nunjucks that works the same?

+3


source to share


1 answer


I think you've already figured out that this docs page contains all the information you need to support these two tags:

include , inserts other templates. This is useful when you need to split smaller chunks into multiple templates that other templates already inherit.

extends is used to indicate template inheritance. The specified template is used as the base template.



Just for those who love ...

0


source







All Articles