mustache icon indicating copy to clipboard operation
mustache copied to clipboard

Mustache template Dart library

Results 19 mustache issues
Sort by recently updated
recently updated
newest added

See https://github.com/dart-lang/sdk/issues/34233, and https://github.com/dart-lang/sdk/blob/main/CHANGELOG.md#2190. This package no builds on the 2.19 dev release.

See https://dart.dev/null-safety for motivation and tooling support.

I meant to ask about NNBD, but I see that this repo hasn't been updated in about 2 years is mustache deprecated?

```dart test('Unicode', () { var output = parse('\u{1F634}\n').renderString({}); expect(output, equals('\u{1F634}\n')); }); ``` The above test fails with the following error: ```sh Expected: '😴\n' '' Actual: '😴\n' '😴\n' '' Which: is...

There are many unused elements in scanner.dart. Also the return statement after `fail` is dead code, as `fail` is marked as `@alwaysThrows`.

``` import 'package:mustache/mustache.dart' as mustache; import 'file_system.dart'; void renderTemplate(String absoluteSourcePath, String finalDestinationPath, Map context) { final sourceFile = fs.file(absoluteSourcePath); final templateContents = sourceFile.readAsStringSync(); final renderedContents = mustache.Template(templateContents).renderString(context); final finalDestinationFile =...

The docs say: `There is also another version of this library available which doesn't use mirrors.` I have no idea what to do after this. It would be _much_ more...

Small typo on example