Sets the template file.
string $file:
InvalidArgumentException
public function setFile($file) {
$distFile = $file . '.dist';
if (file_exists($file)) {
$this->template = file_get_contents($file);
}
else {
if (file_exists($distFile)) {
$this->template = file_get_contents($distFile);
}
else {
throw new InvalidArgumentException('Template file could not be loaded.');
}
}
}