From ca5a443d47ffc8c769064ef2e8bfce33dc760925 Mon Sep 17 00:00:00 2001 From: Anthony W Date: Tue, 22 Oct 2024 08:48:16 -0400 Subject: [PATCH 1/2] Update 09-templating.md Website no longer works, so linking to web archive version of it. --- 09-templating.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/09-templating.md b/09-templating.md index 08720de..9d08ba5 100644 --- a/09-templating.md +++ b/09-templating.md @@ -4,7 +4,7 @@ A template engine is not necessary with PHP because the language itself can take care of that. But it can make things like escaping values easier. They also make it easier to draw a clear line between your application logic and the template files which should only put your variables into the HTML code. -A good quick read on this is [ircmaxell on templating](http://blog.ircmaxell.com/2012/12/on-templating.html). Please also read [this](http://chadminick.com/articles/simple-php-template-engine.html) for a different opinion on the topic. Personally I don't have a strong opinion on the topic, so decide yourself which approach works better for you. +A good quick read on this is [ircmaxell on templating](http://blog.ircmaxell.com/2012/12/on-templating.html). Please also read [this]([http://chadminick.com/articles/simple-php-template-engine.html](http://web.archive.org/web/20190622212821/http://chadminick.com/articles/simple-php-template-engine.html)) for a different opinion on the topic. Personally I don't have a strong opinion on the topic, so decide yourself which approach works better for you. For this tutorial we will use a PHP implementation of [Mustache](https://github.com/bobthecow/mustache.php). So install that package before you continue (`composer require mustache/mustache`). From 7e2922b9609d9f46785146cd4afedcfadc16eabd Mon Sep 17 00:00:00 2001 From: Anthony W Date: Tue, 22 Oct 2024 08:50:46 -0400 Subject: [PATCH 2/2] Update 09-templating.md Fixing edit --- 09-templating.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/09-templating.md b/09-templating.md index 9d08ba5..d62429d 100644 --- a/09-templating.md +++ b/09-templating.md @@ -4,7 +4,7 @@ A template engine is not necessary with PHP because the language itself can take care of that. But it can make things like escaping values easier. They also make it easier to draw a clear line between your application logic and the template files which should only put your variables into the HTML code. -A good quick read on this is [ircmaxell on templating](http://blog.ircmaxell.com/2012/12/on-templating.html). Please also read [this]([http://chadminick.com/articles/simple-php-template-engine.html](http://web.archive.org/web/20190622212821/http://chadminick.com/articles/simple-php-template-engine.html)) for a different opinion on the topic. Personally I don't have a strong opinion on the topic, so decide yourself which approach works better for you. +A good quick read on this is [ircmaxell on templating](http://blog.ircmaxell.com/2012/12/on-templating.html). Please also read [this](http://web.archive.org/web/20190622212821/http://chadminick.com/articles/simple-php-template-engine.html) for a different opinion on the topic. Personally I don't have a strong opinion on the topic, so decide yourself which approach works better for you. For this tutorial we will use a PHP implementation of [Mustache](https://github.com/bobthecow/mustache.php). So install that package before you continue (`composer require mustache/mustache`).