inertia 0.2.0 copy "inertia: ^0.2.0" to clipboard
inertia: ^0.2.0 copied to clipboard

The Inertia.js server-side adapter for Dart

Inertia.js Dart Adapter #

The Inertia.js server-side adapter for Dart. Visit inertiajs.com to learn more.

Features #

  • Inertia responses
  • External redirects
  • Shared data
  • Partial reloads
  • Lazy props
  • Server Side Rendering
  • Documentation
  • Tests

Getting started #

Add inertia to your pubspec.yaml.

dependencies:
  inertia: ^0.2.0

For a full example, check out the /example folder.

final server = await HttpServer.bind(
    InternetAddress.anyIPv6,
    int.fromEnvironment('PORT', defaultValue: 3000)
);

await for (HttpRequest request in server) {
    Inertia(request).render('Index', {
        'prop': 123
    });
}
2
likes
140
pub points
0%
popularity

Publisher

verified publisherlekkerplakjekaas.nl

The Inertia.js server-side adapter for Dart

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

http, path

More

Packages that depend on inertia