Help understanding assets

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Help understanding assets

I don't understand where the css and js are coming from.
In main.gsp will be loaded only application.css and application.js.
In the GSPs generated for each domain-class there are no asset tags.
But in the served pages to the browser I find them all:

<link rel="stylesheet" href="/assets/bootstrap.css?compile=false" />
<link rel="stylesheet" href="/assets/grails.css?compile=false" />
<link rel="stylesheet" href="/assets/main.css?compile=false" />
<link rel="stylesheet" href="/assets/mobile.css?compile=false" />
<link rel="stylesheet" href="/assets/application.css?compile=false" />


<script type="text/javascript" src="/assets/jquery-2.2.0.min.js?compile=false" ></script><script type="text/javascript" src="/assets/bootstrap.js?compile=false" ></script><script type="text/javascript" src="/assets/application.js?compile=false" ></script>

Can I control them per page, not globally?

Thanks, Rawi