<commit_before>Twig HTML Helpers Extension
==========================

This Twig extension adds the following Rails style HTML helpers:

* ```check_box_tag```
* ```content_tag```
* ```hidden_field_tag```
* ```html_tag```
* ```image_tag```
* ```input_tag```
* ```label_tag```
* ```labelled_text_field_tag```
* ```link_tag```
* ```password_field_tag```
* ```radio_button_tag```
* ```reset_tag```
* ```submit_tag```
* ```text_area_tag```
* ```text_field_tag```


To use them, first add them to your ```composer.json```:

    "require": {
        "php": ">=5.2.4",
        "njh/njh/twig-html-helpers": "*"
    },

Then load it into your environment:

    $twig = new Twig_Environment();
    $twig->addExtension(new Twig_Extension_HTMLHelpers());


You can then use them in your Twig templates:

    {{ link_tag('http://www.example.com/') }}
    <commit_msg>Improvements and corrections to the README<commit_after>Twig HTML Helpers Extension
==========================

This [PHP Twig] extension adds the following Rails style HTML helpers:

* ```check_box_tag```
* ```content_tag```
* ```hidden_field_tag```
* ```html_tag```
* ```image_tag```
* ```input_tag```
* ```label_tag```
* ```labelled_text_field_tag```
* ```link_tag```
* ```password_field_tag```
* ```radio_button_tag```
* ```reset_tag```
* ```submit_tag```
* ```text_area_tag```
* ```text_field_tag```


To use them, first add the extension to your ```composer.json```:

    "require": {
        "njh/twig-html-helpers": "*"
    },

Then load it into your environment:

    $twig = new Twig_Environment();
    $twig->addExtension(new Twig_Extension_HTMLHelpers());


You can then use them in your Twig templates:

    {{ link_tag('http://www.example.com/') }}



[PHP Twig]: http://twig.sensiolabs.org
{'fraction_non_alphanumeric': 0.22595332953898692, 'fraction_numerical': 0.001707455890722823, 'mean_word_length': 4.9391891891891895, 'pattern_counts': {'":': 5, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6008640', 'n_tokens_mistral': 634, 'n_tokens_neox': 611, 'n_words': 134}