stubble 1.0.0 copy "stubble: ^1.0.0" to clipboard
stubble: ^1.0.0 copied to clipboard

outdated

Simplified version of the Handlebars template engine for Dart.

example/main.dart

import 'package:stubble/stubble.dart';

void main() {
  final s = Stubble();
  final template = 'Hello! I\'m {{name}}! Nice to meet you!' ;
  final data = {'name': 'Stubble'};

  final fn = s.compile(template);

  print(fn(data)); // prints "Hello! I'm Stubble! Nice to meet you!"
}
7
likes
0
pub points
67%
popularity

Publisher

unverified uploader

Simplified version of the Handlebars template engine for Dart.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta

More

Packages that depend on stubble