public function parseToFile($dst, $data)
    {
        $pattern = new Pattern($this->src);
        return file_put_contents($dst, $pattern->parse($data));
    }
public function parseToFile($dst, $data)
    {
        $pattern = new Pattern($this->src);
        return file_put_contents($dst, $pattern->parse($data));
    }
public function parseToFile ( $ dst , $ data ) { $ pattern = new Pattern ( $ this -> src ) ; return file_put_contents ( $ dst , $ pattern -> parse ( $ data ) ) ; }
Parse template and save it to file

@param  string $dst  Destination filename
@param  array  $data Associative array of keys and values
@return integer Bytes written to file
Parse template and save it to file