dag 0.1.0
dag: ^0.1.0 copied to clipboard
Transpiles .dag files (plain text with embedded Dart code, PHP-style) into plain .dart source files. Not a template engine: the .dag file IS Dart code, interleaved with literal text, exactly like a .p [...]
example/example.dart
import 'dag_layouts/greeting.g.dart' as greeting;
Future<void> main() async {
print(await greeting.render(items: [
"item1",
"item2",
"item3",
"item4",
"item5",
]));
}