This repo builds Pants plugins to compile twirl and routes files into Scala libraries as part of using the Play framework.
There are 2 components:
- Python pants plugin in src/python/**, used in AIQ here
- JVM tool
play-pants-tool
, invoked by the plugin. It is published to s3 (see./local_build.sh
) and referenced by AIQ here.
An example of generating Twirl code: https://github.com/ActionIQ/aiq/blob/dbeadc72537da3f9be74c8a629da28c85373455c/src/twirl/BUILD#L1-L0
An example of generating Routes code: https://github.com/ActionIQ/aiq/blob/260f0a3ae8d1b897b059db4c5964c051516cf7de/src/routes/reverse/BUILD#L5-L4