<commit_before>ZeTwig
====

ZeTwig is a Twig / Zend Framework 2 module compatible with ViewModels from beta3.
It allows to render view templates using Twig instead of the default PHP templates.
It also supports aliases for your template names, rendering a particular action from 
within the template files (follows the save naming conventions as Symfony) and 
triggering events on an object with different parameters.

Documentation
-------------

Upgraded to the new beta3 version of ZF2 View Models.

Any command from the original Twig library should work and also added support for
Zend View helpers as functions and PHP functions as a fallback.

With this new update you should be able to use template names as aliases that can be 
mapped to any twig file. 

You can define an array for aliases within the configuration file for your modules and
use those aliases throughout your code, instead of a specific file name. This way you
can easily change the main layout of your pages from the configuration file and allow
other modules to change them as well (this allows your code to be extensible and allows
templates to have their own structure).

This latest version also contains two new constructs:
1. A tag for rendering a controller action, which follows the Symfony naming conventions 
	or the controller alias and can be used as :
	{% render "Core:Index:index" with {'param1':1} %}

2. A tag for triggering an event on the renderer that is similar to the above syntax:
	
	{% trigger "myRendererEvent" on myObject with {'param1':1} %}
	
	Both the target object and parameters are optional. The result of each listener is 
converted to string and rendered intead of the definition.


Also a new functionality allows the use of aliases within your template code or when
rendering a template.<commit_msg>Update readme file<commit_after>ZeTwig
====

ZeTwig is a Twig / Zend Framework 2 module compatible with ViewModels from beta3.
It allows to render view templates using Twig instead of the default PHP templates.
It also supports aliases for your template names, rendering a particular action from 
within the template files (follows the save naming conventions as Symfony) and 
triggering events on an object with different parameters.

Documentation
-------------

Upgraded to the new beta3 version of ZF2 View Models.

Any command from the original Twig library should work and also added support for
Zend View helpers as functions and PHP functions as a fallback.

With this new update you should be able to use template names as aliases that can be 
mapped to any twig file. 

You can define an array for aliases within the configuration file for your modules and
use those aliases throughout your code, instead of a specific file name. This way you
can easily change the main layout of your pages from the configuration file and allow
other modules to change them as well (this allows your code to be extensible and allows
templates to have their own structure).

This latest version also contains two new constructs:

1. A tag for rendering a controller action, which follows the Symfony naming conventions 
	or the controller alias and can be used as :
	
	{% render "Core:Index:index" with {'param1':1} %}

2. A tag for triggering an event on the renderer that is similar to the above syntax:
	
	{% trigger "myRendererEvent" on myObject with {'param1':1} %}
	
	Both the target object and parameters are optional. The result of each listener is 
converted to string and rendered intead of the definition.

Also a new functionality allows the use of aliases within your template code or when
rendering a template.
{'fraction_non_alphanumeric': 0.037496553625585884, 'fraction_numerical': 0.005514199062586159, 'mean_word_length': 4.250361794500724, 'pattern_counts': {'":': 0, '<': 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': '5782199', 'n_tokens_mistral': 899, 'n_tokens_neox': 845, 'n_words': 571}