read static method
Read the raw HTML content from path.
@param path Absolute or relative path to the HTML file. @return The file content as a String.
@throws FileSystemException if the file does not exist.
Implementation
static String read(String path) {
final file = File(path);
if (!file.existsSync()) {
throw FileSystemException('HTML file not found', path);
}
return file.readAsStringSync();
}