Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenberger committed Mar 18, 2015
1 parent d873b81 commit 28887db
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ This library provides basic integration for using resources from WebJars as Tape
A basic usage example to override Tapestry's shipped jQuery library with a newer version.

`build.gradle`:
```
respositories {
jcenter()
}
```groovy
respositories {
jcenter()
}
dependencies {
runtime 'de.eddyson:tapestry-webjars:0.5.0'
runtime 'org.webjars:jquery:2.1.3'
}
dependencies {
runtime 'de.eddyson:tapestry-webjars:0.5.0'
runtime 'org.webjars:jquery:2.1.3'
}
```

Application Module:
```
@Contribute(JavaScriptStack.class)
@Core
public static void overrideJQueryWithNewerVersion(final OrderedConfiguration<StackExtension> configuration) {
configuration.override("jquery-library", StackExtension.library("webjars:jquery.js"));
}
```java
@Contribute(JavaScriptStack.class)
@Core
public static void overrideJQueryWithNewerVersion(final OrderedConfiguration<StackExtension> configuration) {
configuration.override("jquery-library", StackExtension.library("webjars:jquery.js"));
}
```

0 comments on commit 28887db

Please sign in to comment.