I need to preprocess some Twirl templates in my sbt project. Is it possible to define a task in build.sbt that will run before Twirl plugin compiles its templates?
Asked
Active
Viewed 268 times
1 Answers
0
sbt-web
allows the sequencing of the asset pipeline through pipelineStages
:
pipelineStages := Seq(myPreProcessorTask, myTwirlTask)
Documentation: Writing an Asset Pipeline task
Source on GitHub.
![](../../users/profiles/722180.webp)
bjfletcher
- 9,975
- 3
- 44
- 64