Compiler constructor

Compiler(
  1. Directory sourceDir,
  2. Directory destinationDir,
  3. Directory baseFilesDir,
  4. GlacierConfig _config,
)

Implementation

Compiler(this.sourceDir, this.destinationDir, this.baseFilesDir, this._config) {
  final templateContent = File(path.join(baseFilesDir.absolute.path, "base.html")).readAsStringSync();
  template = Template(templateContent, name: "base.html");

  assetsDir = Directory(path.join(destinationDir.absolute.path, 'assets'));
}