jaguar_generator 2.4.5

Dart native

Source generator for Jaguar Controllers. This will generate route installers for Jaguar Controllers.

jaguar-generator #

Generates Controller installers.

Usage #

Add build_runner dependencies: #

pubspec.yaml:

dependencies:
  jaguar:

dev_dependencies:
  build_runner:
  jaguar_generator:

Declare Controller class #

lib/example.dart:

import 'package:jaguar/jaguar.dart';

part 'example.jroutes.dart';

@GenController(path: "/simple")
class SimpleApi extends Controller with _$SimpleApi {
  @Get()
  String get(_) => "simple";
}

Generate Controller installer #

pub run build_runner build

A file named lib/example.jroutes.dart will be generated with Controller installer class _$SimpleApi.

0
likes
60
pub points
2%
popularity

Source generator for Jaguar Controllers. This will generate route installers for Jaguar Controllers.

Homepage

Documentation

API reference

Uploaders

tejainece@gmail.com
segaud.kevin@gmail.com

License

BSD (LICENSE)

Dependencies

analyzer, build, jaguar, logging, meta, source_gen

More

Packages that depend on jaguar_generator