<commit_before>
ember.js precompiler for projects that use the django compressor

##Why did you write another precompiler npm module?

1. django projects have a quick hook to execute code with django compressor
2. I prefer to precompile my handlebars templates for ember.js when possible
3. I couldn't find an existing npm module that was built to work with django compressor and ember.js

##How do I get started then?

First you need to install node.js if you have not already

http://nodejs.org/download/

Install the npm module

    npm install django-ember-precompile

Add django compressor to your django web project

    pip install -r django_compressor

Register a type to have the compressor fire off the precompile step (in your settings.py)

    COMPRESS_PRECOMPILERS = (
        ('text/x-handlebars', 'node_modules/django-ember-precompile/bin/django-ember-precompile {infile}'),
    )

Finally in your html you need to reference the uncompiled handlebars templates

    {% load staticfiles %}
    {% load compress %}

    {% compress js %}
    <script src="{% static 'script/app/templates/foo.handlebars' %}" type="text/x-handlebars"></script>
    {% endcompress %}

This npm module makes a few assumptions to correctly register the template name with ember.js

    1.) Each template must have a file extension of "handlebars"
    2.) Each template must reside under a root "templates" directory

##Development

To run the tests

    cd tests
    ./runner.sh<commit_msg>added hbs as a supported file extension to the readme<commit_after>
ember.js precompiler for projects that use the django compressor

##Why did you write another precompiler npm module?

1. django projects have a quick hook to execute code with django compressor
2. I prefer to precompile my handlebars templates for ember.js when possible
3. I couldn't find an existing npm module that was built to work with django compressor and ember.js

##How do I get started then?

First you need to install node.js if you have not already

http://nodejs.org/download/

Install the npm module

    npm install django-ember-precompile

Add django compressor to your django web project

    pip install -r django_compressor

Register a type to have the compressor fire off the precompile step (in your settings.py)

    COMPRESS_PRECOMPILERS = (
        ('text/x-handlebars', 'node_modules/django-ember-precompile/bin/django-ember-precompile {infile}'),
    )

Finally in your html you need to reference the uncompiled handlebars templates

    {% load staticfiles %}
    {% load compress %}

    {% compress js %}
    <script src="{% static 'script/app/templates/foo.handlebars' %}" type="text/x-handlebars"></script>
    {% endcompress %}

This npm module makes a few assumptions to correctly register the template name with ember.js

    1.) Each template must have a file extension of "handlebars" or "hbs"
    2.) Each template must reside under a root "templates" directory

##Development

To run the tests

    cd tests
    ./runner.sh
{'fraction_non_alphanumeric': 0.0697442710063102, 'fraction_numerical': 0.0033211557622052474, 'mean_word_length': 3.7358490566037736, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3032178', 'n_tokens_mistral': 845, 'n_tokens_neox': 778, 'n_words': 378}