fallstrick_mvc 0.0.2 fallstrick_mvc: ^0.0.2 copied to clipboard
A starting point for Dart libraries or applications.
fallstrick_mvc #
Usage #
A simple usage example:
import 'package:fallstrick_mvc/fallstrick_mvc.dart';
import 'package:fallstrick_hosting/fallstrick_hosting.dart';
void main() {
createWebHostBuilder('localhost', 8080).build().run();
MVCReflection.doScan();
}
WebHostBuilder createWebHostBuilder(String address, int port) {
return WebHostBuilder().useHttpListener(address, port).configure((app) {
app.use(fallStrickMVC);
});
}
@controller
class HelloController {
void helloWorld() {
print('helloworld')
}
}
We should use this package with fallstrick_routing and fallstrick_hosting
Features and bugs #
Please file feature requests and bugs at the issue tracker.