/**
  * Generates (and writes) a file based on a certain template
  *
  * @param string $template  The path to the template
  * @param array  $variables The variables to assign to the template
  * @param string $path      The path to the file
  */
 public static function generateFile($template, $variables, $path)
 {
     $content = self::generateSnippet($template, $variables);
     // write the file
     Model::makeFile($path, $content);
 }