mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
18 lines
638 B
Dart
18 lines
638 B
Dart
// 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.
|
|
|
|
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);
|
|
}
|
|
}
|