<commit_before># HamlPHP

Yet another Haml to HTML converter written in PHP.

Check the [Wiki](wiki) we've been adding some docs.

## Requirements

PHP 5.2 or newer.

## Usage

The simplest way to use HamlPHP is to manually. You can use mod_rewrite to redirect all your requests to index.php and render the .haml files from there. We'll add this example later. HamlPHP will cache compilation results, so the .haml file is only compiled to php once.

index.haml

```haml
!!! 5
%html
    %body
        #container
            %ul.navigation
                %li Etusivu
                %li Tuotteet

            %h2 Tuotteet
            %ul.products
                - for ($i = 0; $i < 10; $i++)
                    %li= $i * 7
```
<commit_msg>Fixes link to wiki in README<commit_after># HamlPHP

Yet another Haml to HTML converter written in PHP.

Check the [Wiki](https://github.com/hamlphp/HamlPHP/wiki) we've been adding some docs.

## Requirements

PHP 5.2 or newer.

## Usage

The simplest way to use HamlPHP is to manually. You can use mod_rewrite to redirect all your requests to index.php and render the .haml files from there. We'll add this example later. HamlPHP will cache compilation results, so the .haml file is only compiled to php once.

index.haml

```haml
!!! 5
%html
    %body
        #container
            %ul.navigation
                %li Etusivu
                %li Tuotteet

            %h2 Tuotteet
            %ul.products
                - for ($i = 0; $i < 10; $i++)
                    %li= $i * 7
```

{'fraction_non_alphanumeric': 0.08562091503267974, 'fraction_numerical': 0.01045751633986928, 'mean_word_length': 2.07429718875502, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '5159629', 'n_tokens_mistral': 501, 'n_tokens_neox': 455, 'n_words': 195}