From 1d81787aae07e2220fb81959eaeea6ba73558b94 Mon Sep 17 00:00:00 2001 From: Lennaert van der Linden Date: Wed, 29 Nov 2017 23:25:36 +0100 Subject: [PATCH] textual change in README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 09a18af..05c7abc 100644 --- a/README.md +++ b/README.md @@ -10,10 +10,6 @@ This is a renderer for rendering PHP view scripts into a PSR-7 Response object. Note that PHP-View has no built-in mitigation from XSS attacks. It is the developer's responsibility to use `htmlspecialchars()` or a component like [zend-escaper](https://github.com/zendframework/zend-escaper). Alternatively, consider [Twig-View](https://github.com/slimphp/Twig-View). - -## Templates -You may use `$this` inside your php templates. `$this` will be the actual PhpRenderer object will allow you to render sub-templates - ## Installation Install with [Composer](http://getcomposer.org): @@ -81,6 +77,10 @@ $phpView->render($response, $template, [ // In the view above, the $title will be "My Title" and not "Title" ``` +## Sub-templates +Inside your templates you may use `$this` to refer to the PhpRenderer object to render sub-templates. + + ## Exceptions `\RuntimeException` - if template does not exist