Plugin to load the specified CSS file, substituting {{theme}} with the theme for the current page.
This plugin will also load the common css file for the theme, delite/themes/{{theme}}/common.css
,
even if no resource is provided (like in delite/theme!
).
For example, on an iPhone theme!./css/{{theme}}/Button.css
will load ./css/ios/Button.css
and delite/themes/ios/common.css
.
You can also pass an additional URL parameter string
theme={theme widget}
to force a specific theme through the browser
URL input. The available theme ids are bootstrap, holodark (theme introduced in Android 3.0)
and ios. The theme names are case-sensitive. If the given
theme does not match, the bootstrap theme is used.
http://your.server.com/yourapp.html --> automatic detection
http://your.server.com/yourapp.html?theme=holodark --> forces Holodark theme
http://your.server.com/yourapp.html?theme=ios --> forces iPhone theme
You can also specify a particular user agent through the ua=...
URL parameter.