Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

combine js files in template using require?

Go to End

2 Posts   1602 Views


Community Member, 56 Posts

26 July 2010 at 10:51am

I currently have multiple <% require %> tags in the template and dont want to move them to page_controller...
can I combine them in the template??


Forum Moderator, 5523 Posts

26 July 2010 at 11:19am

No I don't believe you can do that since the template parser will probably choke on the array. You can leave your require statement in the template and put the combined_files call in the Page_Controller. AFAIK it will remove the link to the standard required file and replace with the combined path automatically for you.