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

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
120
pub points
68%
popularity

Publisher

unverified uploader

Simplified version of the Handlebars template engine for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

meta

More

Packages that depend on stubble