You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an idea for a feature that I could take a stab at, but I'd like to bounce the ideas off you guys first. I'd like to be able to inject my application version as specified in sbt into my template.properties file consumed by Pamflet. Based on what I see in PamfletSupport.scala, it only reads the source directory today. From there, Pamflet picks up the template.properties in produce.scala.
From my cursory glance, I believe I will need to enhance both Pamflet and sbt-site to be able to specify a different location for my template.properties which I could generate as an sbt task. Maybe by copying the entirety of the src/pamflet directory to another location where I could also drop off the template.properties file would be an option if we only update sbt-site to accept an optional parameter of where to pick it up.
That's what I've come up with thus far. Do any of you see another better approach?
Thanks,
Joe
The text was updated successfully, but these errors were encountered:
I don't exactly remember where Pamflet finds the template file, my preference would be to change Pamflet so we can keep in-memory Property as a setting (modify it if we need to), and pass that in.
Also, I am thinking about using sbt-pamflet from sbt-site when the next version of Pamflet comes out to take advantage of compilable documentation.
Cool, I'll take a look back at Pamflet to see how we can pass in a property file. My recollection is that it simply picks it up in the root directory by name.
I have an idea for a feature that I could take a stab at, but I'd like to bounce the ideas off you guys first. I'd like to be able to inject my application
version
as specified in sbt into mytemplate.properties
file consumed by Pamflet. Based on what I see inPamfletSupport.scala
, it only reads the source directory today. From there, Pamflet picks up thetemplate.properties
inproduce.scala
.From my cursory glance, I believe I will need to enhance both Pamflet and sbt-site to be able to specify a different location for my
template.properties
which I could generate as an sbt task. Maybe by copying the entirety of thesrc/pamflet
directory to another location where I could also drop off thetemplate.properties
file would be an option if we only update sbt-site to accept an optional parameter of where to pick it up.That's what I've come up with thus far. Do any of you see another better approach?
Thanks,
Joe
The text was updated successfully, but these errors were encountered: