From 063b151a36b8516962ae02167be5ba9ffb98b50f Mon Sep 17 00:00:00 2001 From: Matt Basta Date: Thu, 23 Apr 2015 14:50:22 -0700 Subject: [PATCH] Add links to Brainy on the Compiled Templates page Brainy is a fork of Smarty that is focused on enhancing Smarty's security and performance. By default, it includes safer security defaults while also bundling features that make it less susceptible to XSS and other types of attacks. --- _posts/08-04-01-Compiled-Templates.md | 3 ++- _posts/08-05-01-Further-Reading.md | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/_posts/08-04-01-Compiled-Templates.md b/_posts/08-04-01-Compiled-Templates.md index d8ed5dc..5abba92 100644 --- a/_posts/08-04-01-Compiled-Templates.md +++ b/_posts/08-04-01-Compiled-Templates.md @@ -6,7 +6,7 @@ anchor: compiled_templates ## Compiled Templates {#compiled_templates_title} While PHP has evolved into a mature, object oriented language, it [hasn't improved much][article_templating_engines] as -a templating language. Compiled templates, like [Twig] or [Smarty]*, fill this void by offering a new syntax that has +a templating language. Compiled templates, like [Twig], [Brainy], or [Smarty]*, fill this void by offering a new syntax that has been geared specifically to templating. From automatic escaping, to inheritance and simplified control structures, compiled templates are designed to be easier to write, cleaner to read and safer to use. Compiled templates can even be shared across different languages, [Mustache] being a good example of this. Since these templates must be compiled @@ -69,5 +69,6 @@ Using the [Twig] library. [article_templating_engines]: http://fabien.potencier.org/article/34/templating-engines-in-php [Twig]: http://twig.sensiolabs.org/ +[Brainy]: https://github.com/box/brainy [Smarty]: http://www.smarty.net/ [Mustache]: http://mustache.github.io/ diff --git a/_posts/08-05-01-Further-Reading.md b/_posts/08-05-01-Further-Reading.md index f042cab..7a3a753 100644 --- a/_posts/08-05-01-Further-Reading.md +++ b/_posts/08-05-01-Further-Reading.md @@ -13,11 +13,13 @@ anchor: templating_further_reading * [Roll Your Own Templating System in PHP](http://code.tutsplus.com/tutorials/roll-your-own-templating-system-in-php--net-16596) * [Master Pages](https://laracasts.com/series/laravel-from-scratch/episodes/7) * [Working With Templates in Symfony 2](http://code.tutsplus.com/tutorials/working-with-templates-in-symfony-2--cms-21172) +* [Writing Safer Templates](https://github.com/box/brainy/wiki/Writing-Safe-Templates) ### Libraries * [Aura.View](https://github.com/auraphp/Aura.View) *(native)* * [Blade](http://laravel.com/docs/templates) *(compiled, framework specific)* +* [Brainy](https://github.com/box/brainy) *(compiled)* * [Dwoo](http://dwoo.org/) *(compiled)* * [Latte](https://github.com/nette/latte) *(compiled)* * [Mustache](https://github.com/bobthecow/mustache.php) *(compiled)*