angel3_mustache 3.0.0 copy "angel3_mustache: ^3.0.0" to clipboard
angel3_mustache: ^3.0.0 copied to clipboard

outdated

A service that renders Mustache template into HTML view for Angel3

example/main.dart

import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel3_mustache/angel3_mustache.dart';
import 'package:file/file.dart';
import 'package:file/local.dart';

const FileSystem fs = LocalFileSystem();

void 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
0
points
47
downloads

Publisher

verified publisherdukefirehawk.com

Weekly Downloads

A service that renders Mustache template into HTML view for Angel3

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

angel3_framework, file, mustache_template, path

More

Packages that depend on angel3_mustache