i want change grails default index page 1 had designed.. in newly created gsp file include css css not written inside .gsp file, out side of it..when tried put css file , index file in app view folder , when run app it's not displaying showing error that

- you should put
.cssfilesweb-app/cssdirectory - use
<g:resourcetag make valid url such resources (correct url going/prqapp/css/base.css, not/css/base.css).
so, code should looks like:
<link type="text/css" href="${resource(dir: 'css', file: 'base.css')}" /> <link type="text/css" href="${resource(dir: 'css', file: 'layout.css')}" /> <link type="text/css" href="${resource(dir: 'css', file: 'skeleton.css')}" /> see docs
- g:resource tag http://grails.org/doc/latest/ref/tags/resource.html
- static resources: http://grails.org/doc/latest/guide/theweblayer.html#resources
- take @ resources-plugin http://grails.org/plugin/resources
Comments
Post a Comment