Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 61e80b7

Browse files
committed
Added CHANGELOG for #23
1 parent 366fa1d commit 61e80b7

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,23 @@ All notable changes to this project will be documented in this file, in reverse
66

77
### Added
88

9-
- Nothing.
9+
- [#23](https://github.com/zendframework/zend-expressive-zendviewrenderer/pull/23)
10+
adds the ability to disable layouts either globally or when rendering. Disable
11+
globally by setting the default `layout` parameter to boolean `false`:
12+
13+
```php
14+
$renderer->addDefaultParam(TemplateRendererInterface::TEMPLATE_ALL, 'layout', false);
15+
```
16+
17+
Or do so when rendering, by passing the template variable `layout` with a
18+
boolean `false` value:
19+
20+
```php
21+
$renderer->render($templateName, [
22+
'layout' => false,
23+
// other template variables
24+
]);
25+
```
1026

1127
### Deprecated
1228

0 commit comments

Comments
 (0)