<commit_before># Compile templates as AMD modules

This example will show you how to compile templates as AMD modules.

## Dependencies

* [`gulp-define-module`](https://www.npmjs.org/package/gulp-define-module) - Create AMD modules for templates

## Input

This example assumes a directory structure that looks something like this:

```
├── gulpfile.js       # Your gulpfile
└── source/           # Your application's source files
    └── templates/    # A folder containing templates named with dot notation
        ├── App.hbs
        └── App/
        |   ├── header.hbs
        |   ├── footer.hbs
        |   └── etc.hbs
        └── Other.item.hbs
```

## Output

The templates will be compiled down as follows:

| File path                       | Template location                |
| ------------------------------- | -------------------------------- |
| source/templates/App.hbs        | build/js/templates/App.js        |
| source/templates/App/header.hbs | build/js/templates/App/header.js |
| source/templates/App/footer.hbs | build/js/templates/App/footer.js |
| source/templates/Other.item.hbs | build/js/templates/Other.item.js |

**Note:** You can have multiple levels of directories under `source/templates/` for deeper nesting.
<commit_msg>Fix leftover copypasta from AMD example<commit_after># Compile templates for use in Ember.js

This example will show you how to compile templates for use in Ember.js applications.

## Dependencies

* [`ember-handlebars`](https://www.npmjs.org/package/ember-handlebars) - Compile templates for Ember.js
* [`gulp-declare`](https://www.npmjs.org/package/gulp-declare) - Declare properties and sub-properties
* [`gulp-concat`](https://www.npmjs.org/package/gulp-concat) - Combine output into a single file
* [`gulp-wrap`](https://www.npmjs.org/package/gulp-wrap) - Add `require()` and `Handlebars.template()` statements

## Input

This example assumes a directory structure that looks something like this:

```
├── gulpfile.js       # Your gulpfile
└── source/           # Your application's source files
    └── templates/    # A folder containing templates named with dot notation
        ├── App.hbs
        └── App/
        |   ├── header.hbs
        |   ├── footer.hbs
        |   └── etc.hbs
        └── Other.item.hbs
```

## Output

The template files will be compiled to the following namespace paths:

| File path                       | Namespace path             |
| ------------------------------- | -------------------------- |
| source/templates/App.hbs        | Ember.TEMPLATES.App        |
| source/templates/App/header.hbs | Ember.TEMPLATES.App.header |
| source/templates/App/footer.hbs | Ember.TEMPLATES.App.footer |
| source/templates/Other.item.hbs | Ember.TEMPLATES.Other.item |

**Note:** You can have multiple levels of directories under `source/templates/` for deeper nesting.

{'fraction_non_alphanumeric': 0.16182136602451838, 'fraction_numerical': 0.0, 'mean_word_length': 2.4, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 5, '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': '6240194', 'n_tokens_mistral': 841, 'n_tokens_neox': 820, 'n_words': 234}