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?
Preprocessing of sbt-twirl templates
If I define my custom source generator it is executed in parallel with Twirl generator, not before or after. I haven't found a way to make one source generator dependent on another one. –
Prothallus
sbt-web
allows the sequencing of the asset pipeline through pipelineStages
:
pipelineStages := Seq(myPreProcessorTask, myTwirlTask)
Documentation: Writing an Asset Pipeline task
Source on GitHub.
Interestring. I'll try to use the same idea. –
Prothallus
© 2022 - 2024 — McMap. All rights reserved.