<commit_before># Template Plugin #

## Introduction ##

## Example ##
<commit_msg>Template plugin doc<commit_after># Template Plugin #

## Introduction ##

The template plugin provides allows for bundling of handlebars templates with the dependent javascript
code, allowing templates to be kept in separate files and removing any need for additional requests to
load the templates required by a given module.

## Usage ##

The template plugin looks for a `template` configuration object defined on the root lumbar config.
This object should be a hash of javascript pathnames whose values are arrays of template files. on build,
each module that includes a file listed in this hash will have the associated templates defined at least
once in the output.

### Configuration ###

  * `precompile` : Options to pass to handlebars precompile method if precompilation is desired. Leave
        falsy or undefined to load the templates through client-side compilation.
  * `templateCache` : Object that templates will be assigned to. This field is defined on the root config
        and defaults to `{AppModule}.templates` where {AppModule} is the name of the application module.
        This instance can be any object and should be manually defined by the client code.

## Example ##

    {
      "modules": {
        "base": [
          {"src": "js/base.js"}
        ]
      },
      "templates": {
        "js/base.js": [
          "templates/home.handlebars",
          "templates/footer.handlebars"
        ],

        "precompile": {
          "knownHelpers": [
            "template",
            "view"
          ],
          "knownHelpersOnly": true
        }
      },

      "templateCache": "TemplateCache"
    }

{'fraction_non_alphanumeric': 0.0779976717112922, 'fraction_numerical': 0.0, 'mean_word_length': 2.794701986754967, 'pattern_counts': {'":': 9, '<': 3, '<?xml version=': 0, '>': 3, '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': '5806480', 'n_tokens_mistral': 419, 'n_tokens_neox': 410, 'n_words': 191}