import 'package:jael3_web/jael3_web.dart';
import 'package:jael3_web/elements.dart';
part 'main.g.dart';
@Jael(template: '''
Hello, Jael!
Current time: {{now}}
''')
class Hello extends Component with _HelloJaelTemplate {
@override
DateTime get now => DateTime.now();
}
// Could also have been:
class Hello2 extends Component {
DateTime get now => DateTime.now();
@override
DomNode render() {
return div(c: [
h1(c: [
text('Hello, Jael!'),
]),
i(c: [
text('Current time: $now'),
]),
]);
}
}