<commit_before>spark-template-jade
=======================

Spark templating system using jade rendering.

Add jade4j dependency to maven dependencies

```
 <dependency>
    <groupId>de.neuland-bfi</groupId>
    <artifactId>jade4j</artifactId>
    <version>0.4.0</version>
  </dependency>
```        

Example usage of JadeEngine

Create a file named hello.jade and place it into the resources/templates directory
Copy the following into the file...

```html
!!! 5
html
    head
    body
        p Hi there #{name}
```        
In your Java code,
Create a simple route

Use the a Hashmap to pass in the model variables we defined in hello.jade.
In our case we have a variable named "name" -> ```#{name}```

Set the "name" key to a value.

and pass in the JadeEngine.

```java
import spark.ModelAndView;

import java.util.HashMap;
import java.util.Map;

import static spark.Spark.get;

public class JadeTemplateExample {
    public static void main(String[] args) {
        Map map = new HashMap();
        map.put("name", "Godzilla");

        // hello.jade file is in resources/templates directory
        get("/hello", (rq, rs) -> new ModelAndView(map, "hello"), new JadeEngine());
    }
}
```

Now if you render ```/hello``` you should get the following.

Hi there Godzilla
<commit_msg>Revert "Update README.md"<commit_after>spark-template-engines
======================

Repository for different Template engine implementations. 

{'fraction_non_alphanumeric': 0.1374738311235171, 'fraction_numerical': 0.00418702023726448, 'mean_word_length': 3.552380952380952, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '995298', 'n_tokens_mistral': 447, 'n_tokens_neox': 421, 'n_words': 153}