<commit_before># Scala.js Scripts

[![Latest Version](https://maven-badges.herokuapp.com/maven-central/com.vmunier/scalajs-scripts_2.11/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.vmunier/scalajs-scripts_2.11)
[![License](http://img.shields.io/:license-Apache%202-red.svg)](http://www.apache.org/licenses/LICENSE-2.0.txt)

Small library which provides a few Twirl templates to link Scala.js output scripts into a HTML page.

## Setup

Add the library to `build.sbt`:
```
libraryDependencies += "com.vmunier" %% "scalajs-scripts" % "1.1.0"
```

For Play framework users, use the `1.0.0` version:
```
libraryDependencies += "com.vmunier" %% "scalajs-scripts" % "1.0.0"
```
The reason is that the Play framework still uses Twirl `v1.2.0` whereas scalajs-scripts `v1.1.0` uses Twirl `v1.3.0`, which contains breaking changes.

## Available Twirl Templates

There are four Twirl templates: `scripts.scala.html`, `selectScript.scala.html`, `jsdeps.scala.html`, `launcher.scala.html`.

- `scripts.scala.html` is the main template, it includes the three other templates.<commit_msg>Update README.md: scalajs-scripts v1.1.0 can be used with Play now that Play v2.6.0 uses Twirl v1.3.3.<commit_after># Scala.js Scripts

[![Latest Version](https://maven-badges.herokuapp.com/maven-central/com.vmunier/scalajs-scripts_2.11/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.vmunier/scalajs-scripts_2.11)
[![License](http://img.shields.io/:license-Apache%202-red.svg)](http://www.apache.org/licenses/LICENSE-2.0.txt)

Small library which provides a few Twirl templates to link Scala.js output scripts into a HTML page.

## Setup

Add the library to `build.sbt`:
```
libraryDependencies += "com.vmunier" %% "scalajs-scripts" % "1.1.0"
```

## Available Twirl Templates

There are four Twirl templates: `scripts.scala.html`, `selectScript.scala.html`, `jsdeps.scala.html`, `launcher.scala.html`.

- `scripts.scala.html` is the main template, it includes the three other templates.
{'fraction_non_alphanumeric': 0.157, 'fraction_numerical': 0.026, 'mean_word_length': 4.783236994219653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4342559', 'n_tokens_mistral': 748, 'n_tokens_neox': 697, 'n_words': 159}