# code bases. Also note that the size of a graph can be further restricted by
# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction.
-MAX_DOT_GRAPH_DEPTH = 0
+MAX_DOT_GRAPH_DEPTH = 1000
# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
# background. This is disabled by default, which results in a white background.
<!-- A compileable template for the application selector //-->
-{?header:title=[--WELCOME_APPLICATION_SELECTOR--]?}
+{?header:title=[WELCOME_APPLICATION_SELECTOR]?}
{?navigation:nav_row=home;imprint;contact?}
-<div class="selector_header">
- [--HEADER_APPLICATION_SELECTOR--]
+<div id="main_header">
+ [HEADER_APPLICATION_SELECTOR]
</div>
-<div class="selector_list_apps">
+<div id="main_content">
{?selector_apps?}
</div>
-{?footer_msg:footer_msg=[--FOOTER_APPLICATION_SELECTOR--]?}
+{?footer_msg:footer_msg=[FOOTER_APPLICATION_SELECTOR]?}
<!-- The compileable main template for the ship simulator //-->
-{?header:title=[--WELCOME_SHIP_SIMU--]?}
+{?header:title=[WELCOME_SHIP_SIMU]?}
+<div id="navigation">
{?navigation:nav_row=home;imprint;contact?}
+</div>
-<div class="shipsimu_header">
- [--HEADER_SHIP_SIMU--]
+<div id="main_header">
+ [HEADER_SHIP_SIMU]
</div>
-<div class="shipsimu_content">
+<div id="main_content">
{?content?}
</div>
-<div class="shipsimu_content">
- [--FOOTER_SHIP_SIMU--]
+<div id="main_footer">
+ [FOOTER_SHIP_SIMU]
</div>
-{?footer_msg:footer_msg=[--FOOTER_SHIP_SIMU--]?}
+{?footer_msg:footer_msg=[FOOTER_SHIP_SIMU]?}
-<div class="home_content">
- <div class="content_header">
+<div id="home_content">
+ <div id="content_header">
Willkommen zum Schiffsimulator "Ship-Simu"!
</div>
- <div class="news_frame">
+ <div id="news_frame">
{?ship_simu_news?}
</div>
</div>
-<div class="selector_content">
+<div id="selector_content">
<div style="text-align: left; padding-top: 15px; padding-left: 10px; padding-right: 10px">
Gründen Sie eine virtuelle Reederei an den bedeutestens
Welthäfen! Oder treten Sie einer Reederei als Angestellter bei und
// to make things easier. A cache mechanism should be added between
// these two calls to cache compiled templates.
$templateInstance->compileVariables();
- die("<pre>".print_r($templateInstance, true)."</pre>");
+
+ // Get the content back from the template engine and put it in the response class
+ $templateInstance->transferToResponse($responseInstance);
}
}
// Purge raw content
$this->setRawTemplateData("");
}
+
+ /**
+ * Transfers the content of this template engine to a given response instance
+ *
+ * @param $responseInstance An instance of a response class
+ * @return void
+ */
+ public function transferToResponse (Responseable $responseInstance) {
+ // Get the content and set it in the response class
+ $responseInstance->writeToBody($this->getCompiledData());
+ }
}
// [EOF]