<commit_before># Braket

> Minimal Javascript engine compatible with node.js and frontend browser.

## Features

- Ultrafast
- Learn in 1 minute
- Uses `[[ ]]` by default, so plays well with `{{ }}` (Angular, Ember...)
- Blocks for reuse
- Compatible with node (including express) and modern browsers

## TL;DR

* Html templating system for nodejs and frontend
* Write HTML and execute javascript between `[[` and `]]`
* Define, call and reuse blocks (e.g. headers, footers, nav...)

## Getting started

See the [examples](examples)

## Language definition

### Javascript execution

Anything between `[[ ... ]]` is executed as javascript.

### Block definition

Define blocks between `[[## ... #]]`
Call blocks with `[[# ... ]]`

For example

```
Hello [[# block1('bracket') ]]

[[## block1(arg1)
  [[= arg ]] from block 1
#]]
```

Result: `Hello bracket from block 1`
<commit_msg>Put the tldr at the end<commit_after># Braket

> Minimal Javascript engine compatible with node.js and frontend browser.

## Features

- Ultrafast
- Learn in 1 minute
- Uses `[[ ]]` by default, so plays well with `{{ }}` (Angular, Ember...)
- Blocks for reuse
- Compatible with node (including express) and modern browsers

## Getting started

See the [examples](examples)

## Language definition

### Javascript execution

Anything between `[[ ... ]]` is executed as javascript.

### Block definition

Define blocks between `[[## ... #]]`
Call blocks with `[[# ... ]]`

For example

```
Hello [[# block1('bracket') ]]

[[## block1(arg1)
  [[= arg ]] from block 1
#]]
```

Result: `Hello bracket from block 1`

## TL;DR

* Html templating system for nodejs and frontend
* Write HTML and execute javascript between `[[` and `]]`
* Define, call and reuse blocks (e.g. headers, footers, nav...)

{'fraction_non_alphanumeric': 0.1544532130777903, 'fraction_numerical': 0.006764374295377677, 'mean_word_length': 3.849726775956284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6105108', 'n_tokens_mistral': 590, 'n_tokens_neox': 541, 'n_words': 203}