Skip to content

Commit

Permalink
Added documentation for supporting Internet Explorer version lower th…
Browse files Browse the repository at this point in the history
…an 9
  • Loading branch information
Lawrence Lee committed Feb 24, 2015
1 parent 1062f7f commit f8e7f81
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ Stylesheet `grails-app/assets/javascripts/application.css`:
```

###Edit your Sitemesh layout
`grails-app/views/layouts/<layout>.gsp`:
`grails-app/views/layouts/<layout>.gsp`

```gsp
<!DOCTYPE html>
<head>
Expand All @@ -84,9 +85,18 @@ Stylesheet `grails-app/assets/javascripts/application.css`:
</html>
```

####Supporting Internet Explorer
If you wish to support Internet Explorer lower than version 9, then you need to add the following just above `<g:layoutHead>`:
```gsp
<!--[if lt IE 9]>
<asset:javascript src="html5shiv/html5shiv.js"/>
<![endif]-->
```

##Including the resources when using the Resources plugin
###Edit your Sitemesh layout
`grails-app/views/layouts/<layout>.gsp`:
`grails-app/views/layouts/<layout>.gsp`

```gsp
<!DOCTYPE html>
<html lang="en">
Expand All @@ -105,6 +115,13 @@ Stylesheet `grails-app/assets/javascripts/application.css`:
</html>
```

####Supporting Internet Explorer
If you wish to support Internet Explorer lower than version 9, then your `<r:requireModules>` line should look like this:

```gsp
<r:require modules="restapidoc_html5shiv, bootstrap, restapidoc"/>
```

#Logging
You can enable logging for the restapidoc plugin by adding the following line to `grails-app/conf/Config.groovy`:

Expand Down

0 comments on commit f8e7f81

Please sign in to comment.