Load extends after blocks

时间:2017-12-18 08:27:08

标签: twig

So I have been working with twig now, and I use a function manner to render all of my html. My question is, is there a way to render the blocks (with functions) first, and then the {% extends X %} afterwards?

example:

create view tableC as
select code||' - '||year status, flag
from (
       select a.code, b.year, b.flag  from tableA a cross join tableB b       
     )
group by code, year, flag     
order by year, code;/

select * from tableC;/

I would want the resource function to trigger, before the file is extended, in some way.

Reason why: In the base I define another function which loads a head with a base configuration, it also gives easy options to load certain libraries such as bootstrap etc. But I want the user able to later, externally in a body add more resources and make them pop up in the head instead of in the body. I can give more code if needed but I think this will suffice since this is more a twig question than a php question.

0 个答案:

没有答案