From 34a47a5ffabda684b531062c816a848591344bdc Mon Sep 17 00:00:00 2001 From: Laurent Date: Thu, 22 Feb 2018 16:39:45 +0100 Subject: [PATCH] Enhance readme documentation More information about direct resource delivery by Servlet 3 container and constraint on explicit version. Some insight on the expected format in Webjars*ResourceReference --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 72785ea..055c6d0 100644 --- a/README.md +++ b/README.md @@ -92,7 +92,7 @@ It is also possible to use a resource by adding it to your html markup directly: ``` -**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) @@ -113,6 +113,8 @@ public WebjarsComponent extends Panel { } ``` +**Note**: you must specify in your path either an explicit version (``1.8.3``) or the ```` configured in ``IWebjarsSettings`` (``current`` for a default config). + Authors -------