angel_mustache 2.0.0 copy "angel_mustache: ^2.0.0" to clipboard
angel_mustache: ^2.0.0 copied to clipboard

Mustache view generator for Angel.

example/main.dart

import 'package:angel_framework/angel_framework.dart';
import 'package:angel_mustache/angel_mustache.dart';
import 'package:file/file.dart';
import 'package:file/local.dart';

const FileSystem fs = const LocalFileSystem();

configureServer(Angel app) async {
  // Run the plug-in
  await app.configure(mustache(fs.directory('views')));

  // Render `hello.mustache`
  app.get('/', (req, res) async {
    await res.render('hello', {'name': 'world'});
  });
}
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Mustache view generator for Angel.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

angel_framework, file, mustache4dart, path

More

Packages that depend on angel_mustache