开发者

Merging JavaScript code into the <head> with sitemesh and jsp's

开发者 https://www.devze.com 2023-02-03 05:52 出处:网络
I\'m using sitemesh to decorate my web pages. Can someone guide me on the best practice. The header.jsp and sidebar.jsp have JavaScript code dependencies and I would like to merge 开发者_如何学Pythont

I'm using sitemesh to decorate my web pages. Can someone guide me on the best practice. The header.jsp and sidebar.jsp have JavaScript code dependencies and I would like to merge 开发者_如何学Pythonthese into the head along with the main page which is being decorated.

Basically I want to decorate both the HTML and the <head>.


If the code in healder.jsp is between <head></head>, sitemesh will, by default, append it into the <head></head> of the main decorator.

0

精彩评论

暂无评论...
验证码 换一张
取 消