How to reference CSS / JS / image resource in Facelets template?

前端 未结 4 2153
刺人心
刺人心 2020-11-21 05:00

I\'ve done tutorial about Facelets templating.

Now I\'ve tried to create a page that isn\'t in same directory as the template. I\'ve got problems with page style, b

4条回答
  •  说谎
    说谎 (楼主)
    2020-11-21 05:35

    These answers helped me to fix the same issue. Although my problem was more complex since I was using SASS and GULP.

    I had to change (please note the "\" in front of the #. Probably side effect from gulp:

       
    
     background: $blue url("\#{resource['my_theme/images/background-homepage-h1.png']}");
    

提交回复
热议问题