Adding CSS/js into Mustache template for UI design elements in Java Webapp

1,117 views
Skip to first unread message

Xin Qian

unread,
Oct 27, 2015, 6:47:15 PM10/27/15
to mustache.java
Hi,

While developing some simple Java Webapp, moustache is flexible to give the content a uniformed template. However, I had some problem with adding UI design element like CSS/js into Mustache template, especially within the maven hierarchy. Are those .css or .js file supposed to put in the same directory of the template? While these .css or .js file are called within the template, it is assumed to start from the template's path?

For example, within the Template.mustache, one reference to css stylesheet is <link href="bootstrap.min.css" rel="stylesheet">. Where would be the proper place to put bootstrap.min.css?

Thanks a lot.

Sam

unread,
Nov 5, 2015, 12:35:21 PM11/5/15
to mustache.java
This is not really related to mustache. Those are pulled in by the web browser when it renders the HTML that you generate. You need to serve them from the file system somehow.

Sam
Reply all
Reply to author
Forward
0 new messages