dev-master
9999999-devThe Dough Templating Language
MIT
The Development Requires
template php dough templating language
v1.0
1.0.0.0The Dough Templating Language
MIT
The Development Requires
template php dough templating language
 Wallogit.com
                    
                    2017 © Pedro Peláez
                         Wallogit.com
                    
                    2017 © Pedro Peláez
                    
                    
                    
                    
                
                
            
The Dough Templating Language
Dough is a tiny templating language that understands two constructs:, (*2)
{{ some_variable }} Normal variables (will be HTML-escaped on output), (*3)
{!! some_variable !!} Raw variables (will not be HTML-escaped when output), (*4)
It also allows for arrays in its data:
    {{ pie.name }}, (*5)
We use this for user-exposed tokens in a mail merge, where we wouldn't want the user to have access to a more complex templating language with a larger surface area to secure., (*6)
Be aware that this package does not currently protect against JavaScript or malicious HTML injection., (*7)
$mixed = DoughMixer::mix("pie is {{ pie }}"   , ['pie' => '<good>']); // "pie is <good&rt;"
$mixed = DoughMixer::mix("pie is {!! pie !!}" , ['pie' => '<good>']); // "pie is <good>"
$mixed = DoughMixer::mix("Eat {{ pie.name }}!", 
                                 ['pie' => ['name' => 'Apple Pie']]); // "Eat Apple Pie!"
        The Dough Templating Language
MIT
template php dough templating language
The Dough Templating Language
MIT
template php dough templating language