dartrix 0.2.2 copy "dartrix: ^0.2.2" to clipboard
dartrix: ^0.2.2 copied to clipboard

An Extensible Template Engine for Dart. Comes with a set of builtin templates, and supports extension by "plugin" template libraries.

example/main.dart

import 'package:logger/logger.dart';

var logger = Logger(
  filter: ProductionFilter(),
  printer: PrettyPrinter(),
);

var loggerNoStack = Logger(
  printer: PrettyPrinter(methodCount: 0),
);

void main() {
  print(
      "Run with either `dart example/lib/main.dart` or `dart --enable-asserts example/lib/main.dart`.");
  demo();
}

void demo() {
  logger.d("Log message with 2 methods");

  loggerNoStack.i("Info message");

  loggerNoStack.w("Just a warning!");

  logger.e("Error! Something bad happened", "Test Error");

  loggerNoStack.v({"key": 5, "value": "something"});

  Logger(printer: SimplePrinter()..useColor = true).v("boom");
}

// import 'package:dartrix/dartrix.dart';

// void main(List<String> args) {
//   print("This is a command line app. I'm just here to make the dart analysis tools happy.");
// }
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

An Extensible Template Engine for Dart. Comes with a set of builtin templates, and supports extension by "plugin" template libraries.

Repository (GitHub)
View/report issues

License

EPL-2.0 (license)

Dependencies

ansicolor, args, glob, http, logger, merge_map, mustache_template, package_config, path, process_run, pub_semver, safe_config, sprintf, strings, yaml

More

Packages that depend on dartrix