blob: be02adfe715cae7cc5d8ba44a6154150383d0403 [file] [log] [blame]
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import 'package:mustache_template/mustache_template.dart';
import '../base/template.dart';
/// An indirection around mustache use to allow google3 to use a different dependency.
class MustacheTemplateRenderer extends TemplateRenderer {
const MustacheTemplateRenderer();
@override
String renderString(String template, dynamic context, {bool htmlEscapeValues = false}) {
return Template(template, htmlEscapeValues: htmlEscapeValues).renderString(context);
}
}