private static function IncludeTemplate(){
            $oThis = self::CreateInstanceIfNotExists();

            $oThis->ReplaceVars();
            $oThis->sBuffer = trim($oThis->sBuffer);
            $Offset = 0;

            while(preg_match('/{include\s*(.*?)}/i', $oThis->sBuffer, $aMatches, PREG_OFFSET_CAPTURE, $Offset)){
                $sFilename = str_replace(array("'", '"'), "", $aMatches[1][0]);

                if(file_exists($sFilename)){
                    $sBufferAppend = file_get_contents($sFilename);
                    $oThis->sBuffer = str_replace($aMatches[0][0], $sBufferAppend, $oThis->sBuffer);
                }
                else{
                   $oThis->sBuffer = str_replace($aMatches[0][0], "", $oThis->sBuffer);
                }

                $Offset = $aMatches[0][1]+strlen($aMatches[0][0]);
            }
        }