<commit_before>YAPTE
=====

Yet Another PHP Template Engine

Useful little (<150 lines) templater that doesn't get in the way.

Supports parent-child/master templates with sections (think TWIG).

PHP 5.3+ Recommended.

Basic Usage
-----------

The core of the templater is focused on some simple reg-ex replcements. As Below.

 * __Output / Logic__
 * {{ $hello }}  --> <?php echo $hello ;?>
 * {% if(true): %}True!{% endif %} --> <?php if(true): ;?>True!<?php endif ;?>
 * __Templater Shortcuts__
 * {{t Render('menu') }} --> <?php echo $this->Render('menu') ;?>
 * {%t StartSection('content') %} --> <?php $this->StartSection('content') ;?>

The theme here is that double brackets output and bracket-percent performs actions/does logic.

You are of course free to use normal php tags where you see fit, these are there to help but are not required.

Compiled Templates
------------------<commit_msg>Updated documentation formatting<commit_after>YAPTE
=====

Yet Another PHP Template Engine

Useful little (<150 lines) templater that doesn't get in the way.

Supports parent-child/master templates with sections (think TWIG).

PHP 5.3+ Recommended.

Basic Usage
-----------

The core of the templater is focused on some simple reg-ex replcements. As Below.

 * __Output / Logic__
 * `{{ $hello }}`  --> `<?php echo $hello ;?>`
 * `{% if(true): %}True!{% endif %}` --> `<?php if(true): ;?>True!<?php endif ;?>`
 * __Templater Shortcuts__
 * `{{t Render('menu') }}` --> `<?php echo $this->Render('menu') ;?>`
 * `{%t StartSection('content') %}` --> `<?php $this->StartSection('content') ;?>`

The theme here is that double brackets output and bracket-percent performs actions/does logic.

You are of course free to use normal php tags where you see fit, these are there to help but are not required.

Compiled Templates
------------------
{'fraction_non_alphanumeric': 0.1763745236799129, 'fraction_numerical': 0.005443658138268917, 'mean_word_length': 3.606516290726817, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 25, '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': '7260710', 'n_tokens_mistral': 578, 'n_tokens_neox': 534, 'n_words': 212}