dag 0.1.1
dag: ^0.1.1 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.
import 'dag_layouts/greeting.g.dart' as greeting;
Future<void> main() async {
print(await greeting.render(items: [
"item1",
"item2",
"item3",
"item4",
"item5",
]));
}