Skip to content

Commit 1d81787

Browse files
committed
textual change in README.md
1 parent b721888 commit 1d81787

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ This is a renderer for rendering PHP view scripts into a PSR-7 Response object.
1010
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).
1111

1212

13-
14-
## Templates
15-
You may use `$this` inside your php templates. `$this` will be the actual PhpRenderer object will allow you to render sub-templates
16-
1713
## Installation
1814

1915
Install with [Composer](http://getcomposer.org):
@@ -81,6 +77,10 @@ $phpView->render($response, $template, [
8177
// In the view above, the $title will be "My Title" and not "Title"
8278
```
8379

80+
## Sub-templates
81+
Inside your templates you may use `$this` to refer to the PhpRenderer object to render sub-templates.
82+
83+
8484
## Exceptions
8585
`\RuntimeException` - if template does not exist
8686

0 commit comments

Comments
 (0)