view method

String? view(
  1. String filename
)

Load a file from the container TODO: This doesnt feel like the right path forward for this.

Implementation

String? view(String filename) {
  String templateString;
  try {
    templateString = read('@views.$filename');
  } catch (e) {
    throw ViewNotFoundError(filename);
  }

  return templateString;
}