dag 0.1.2 copy "dag: ^0.1.2" to clipboard
dag: ^0.1.2 copied to clipboard

Transpiles .dag files (text with embedded Dart, PHP-style) into plain .dart source. Not a template engine — the .dag file IS Dart code.

example/example.dart

/// Full app example using the `greeting` module.
/// See the source on GitHub:
/// https://github.com/uproid/dag/blob/main/example/dag_layouts/greeting.dag

import 'dag_layouts/greeting.g.dart' as greeting;

Future<void> main() async {
  print(await greeting.render(items: [
    "item1",
    "item2",
    "item3",
    "item4",
    "item5",
  ]));
}
4
likes
160
points
108
downloads

Documentation

API reference

Publisher

verified publisherfinchdart.com

Weekly Downloads

Transpiles .dag files (text with embedded Dart, PHP-style) into plain .dart source. Not a template engine — the .dag file IS Dart code.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

args, build, path, watcher

More

Packages that depend on dag