It is common for websites to have a single layout template file with interchanging content. To render content to be used in a layout, you can pass in an optional parameter to the `render` method.
It is common for websites to have a single layout template file with interchanging content. To render content to be used in a layout, you can pass in an optional parameter to the `render` method.
@ -69,7 +69,7 @@ The output would be:
</body>
</body>
</html>
</html>
## Custom Views
### Custom Views
Flight allows you to swap out the default view engine simply by registering your own view class.
Flight allows you to swap out the default view engine simply by registering your own view class.
Here's how you would use the [Smarty](http://www.smarty.net/) template engine for your views:
Here's how you would use the [Smarty](http://www.smarty.net/) template engine for your views: