Skip to content

Commit

Permalink
Enhance readme documentation
Browse files Browse the repository at this point in the history
More information about direct resource delivery by Servlet 3 container and constraint on explicit version.
Some insight on the expected format in Webjars*ResourceReference
  • Loading branch information
lalmeras committed Mar 15, 2018
1 parent 467c2d2 commit 34a47a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ It is also possible to use a resource by adding it to your html markup directly:
<img src="/webjars/jquery-ui/1.9.2/css/smoothness/images/ui-icons_cd0a0a_256x240.png"/>
```

**Note**: The above works only for Servlet 3 web containers! Embedded Jetty needs extra configuration to enable this feature!
**Note**: The above works only for Servlet 3 web containers that automatically map META-INF/resources/* as browsable resources! Embedded Jetty or containers without this feature need extra configuration to enable this feature! Explicit version is also required (``jquery-ui/current/...`` urls are not handled).

To use always recent version from your pom you have to replace the version in path with the string "current". When resource
name gets resolved this string will be replaced by recent available version in classpath. (this feature is available since 0.2.0)
Expand All @@ -113,6 +113,8 @@ public WebjarsComponent extends Panel {
}
```

**Note**: you must specify in your path either an explicit version (``1.8.3``) or the ``<recentVersionPlaceHolder>`` configured in ``IWebjarsSettings`` (``current`` for a default config).

Authors
-------

Expand Down

0 comments on commit 34a47a5

Please sign in to comment.