template = file_get_contents($this->sourceFile); } private function save() { file_put_contents($this->destination, $this->compiled); } public function compile($text = '') { if($text) { $text = ", '".$text."'"; } $this->compiled = str_replace('/*{'.$this->mode.'}*/', $text , $this->template); //$this->compiled = $this->template; $this->save(); } } ?>