]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/main/template/class_TemplateEngine.php
CSS classes formed to ids and command LocalHome finished
[shipsimu.git] / inc / classes / main / template / class_TemplateEngine.php
index 20984c2fe181ddb40b6f309525060fc04aaec9b2..980f56c9426b1e6eab6b451a96240bf46f41f59c 100644 (file)
@@ -1106,6 +1106,17 @@ class TemplateEngine extends BaseFrameworkSystem implements CompileableTemplate
                // 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]