<?xml version="1.0" encoding="UTF-8"?>
<ae:configurations xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0" xmlns="http://agavi.org/agavi/config/parts/output_types/1.0">

<ae:configuration>

<output_types default="html">

<output_type name="html">

<renderers default="php">
<renderer name="php" class="AgaviPhpRenderer">
<ae:parameter name="assigns">
<ae:parameter name="routing">ro</ae:parameter>
<ae:parameter name="request">rq</ae:parameter>
<ae:parameter name="controller">ct</ae:parameter>
<ae:parameter name="user">us</ae:parameter>
<ae:parameter name="translation_manager">tm</ae:parameter>
<ae:parameter name="request_data">rd</ae:parameter>
</ae:parameter>
<ae:parameter name="default_extension">.php</ae:parameter>
<!-- this changes the name of the variable with all template attributes from the default $template to $t -->
<ae:parameter name="var_name">t</ae:parameter>
</renderer>
</renderers>

<layouts default="standard">
<!-- standard layout with a content and a decorator layer -->
<layout name="standard">
<!-- content layer without further params. this means the standard template is used, i.e. the one with the same name as the current view -->
<layer name="content" />
<!-- decorator layer with the HTML skeleton, navigation etc; set to a specific template here -->
<layer name="decorator">
<ae:parameter name="directory">%core.template_dir%</ae:parameter>
<ae:parameter name="template">Master</ae:parameter>
</layer>
</layout>

<!-- another example layout that has an intermediate wrapper layer in between content and decorator -->
<!-- it also shows how to use slots etc -->
<layout name="wrapped">
<!-- content layer without further params. this means the standard template is used, i.e. the one with the same name as the current view -->
<layer name="content" />
<layer name="wrapper">
<!-- use CurrentView.wrapper.php instead of CurrentView.php as the template for this one -->
<ae:parameter name="extension">.wrapper.php</ae:parameter>
</layer>
<!-- decorator layer with the HTML skeleton, navigation etc; set to a specific template here -->
<layer name="decorator">
<ae:parameter name="directory">%core.template_dir%</ae:parameter>
<ae:parameter name="template">Master</ae:parameter>
<!-- an example for a slot -->
## <slots>
## <slot name="sidebar" module="Default" action="Sidebar" />
## </slots>
</layer>
</layout>

<!-- special layout for slots that only has a content layer to prevent the obvious infinite loop that would otherwise occur if the decorator layer has slots assigned in the layout; this is loaded automatically by ProjectBaseView::setupHtml() in case the current container is run as a slot -->
<layout name="simple">
<layer name="content" />
</layout>
</layouts>

<ae:parameter name="http_headers">
<ae:parameter name="Content-Type">text/html; charset=UTF-8</ae:parameter>
</ae:parameter>

</output_type>

</output_types>

</ae:configuration>

<ae:configuration environment="production.*">

<output_types default="html">

<!-- use a different exception template in production envs -->
<!-- others are defined in settings.xml -->
<output_type name="html" exception_template="%core.template_dir%/exceptions/web-html.php" />

</output_types>

</ae:configuration>

</ae:configurations>