load method

  1. @override
Template load(
  1. Environment environment,
  2. String path, {
  3. Map<String, Object?>? globals,
})
override

Loads a template to the environment template cache.

Implementation

@override
Template load(
  Environment environment,
  String path, {
  Map<String, Object?>? globals,
}) {
  var source = getSource(path);
  return environment.fromString(source, path: path, globals: globals);
}