Skip to content

Commit 17056e8

Browse files
authored
Update README.md (#49)
1 parent ff4ef70 commit 17056e8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ Small library which provides a way to link Scala.js output to HTML templating en
77
[twirl](https://github.com/playframework/twirl), [scalatags](https://github.com/lihaoyi/scalatags) or even
88
standard scala string interpolation.
99

10+
11+
## When using sbt-web-scalajs `v1.2.0` or higher
12+
13+
*scalajs-scripts is deprecated when using sbt-web-scalajs `v1.2.0` or higher. The recommended approach is to create a template helper in the project itself. Example of a `findScript.scala.html` template in [Play](https://github.com/vmunier/play-scalajs.g8/blob/856e70e60f518db27cd8db524abf0bed1d0fc59d/src/main/g8/server/app/views/findScript.scala.html) and [Akka HTTP](https://github.com/vmunier/akka-http-scalajs.g8/blob/961276766e4c69caf9ad6aee9a14b283cc2bc946/src/main/g8/server/src/main/twirl/%24package%24/findScript.scala.html).*
14+
15+
## When using sbt-web-scalajs `v1.1.0` or lower
16+
1017
## Setup
1118

1219
Add the library to `build.sbt`:

0 commit comments

Comments
 (0)