Skip to content

Latest commit

 

History

History
130 lines (114 loc) · 3.68 KB

play-routes.md

File metadata and controls

130 lines (114 loc) · 3.68 KB

play_routes

play_routes(name, generate_forwards_router, generate_reverse_router, include_play_imports, namespace_reverse_router, play_routes_compiler, routes_generator, routes_imports, srcs)

Compiles Play routes files templates to Scala sources files.

Attributes

name Name; required

A unique name for this target.

generate_forwards_router Boolean; optional

Whether the forward router should be generated. Setting to false may help generate only the reverse routes

generate_reverse_router Boolean; optional

Whether the reverse router should be generated. Setting to false may reduce compile times if it's not needed.

include_play_imports Boolean; optional

If true, include the imports the Play project includes by default.

namespace_reverse_router Boolean; optional

Whether the reverse router should be namespaced. Useful if you have many routers that use the same actions.

play_routes_compiler Label; optional
routes_generator String; optional

The full class of the routes generator, e.g., `play.routes.compiler.InjectedRoutesGenerator`

routes_imports List of strings; optional

Additional imports to import to the Play routes

srcs List of labels; required

Play routes files

PlayRoutesInfo

PlayRoutesInfo(srcjar)

Fields

srcjar

The source jar created by this target.