render function

Future<String> render(
  1. String source, [
  2. Map<String, Object?> locals = const {},
  3. PugOptions? options
])

Implementation

Future<String> render(
  String source, [
  Map<String, Object?> locals = const {},
  PugOptions? options,
]) async {
  return compile(source, options).render(locals);
}