dag 0.1.2
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.
/// 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",
]));
}