{"action":"opened","issue":{"url":"https://api.github.com/repos/sbt/sbt-site/issues/48","labels_url":"https://api.github.com/repos/sbt/sbt-site/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/sbt/sbt-site/issues/48/comments","events_url":"https://api.github.com/repos/sbt/sbt-site/issues/48/events","html_url":"https://github.com/sbt/sbt-site/issues/48","id":60919962,"number":48,"title":"Feature Suggestion: Generating template.properties for Pamflet","user":{"login":"joescii","id":882948,"avatar_url":"https://avatars.githubusercontent.com/u/882948?v=3","gravatar_id":"","url":"https://api.github.com/users/joescii","html_url":"https://github.com/joescii","followers_url":"https://api.github.com/users/joescii/followers","following_url":"https://api.github.com/users/joescii/following{/other_user}","gists_url":"https://api.github.com/users/joescii/gists{/gist_id}","starred_url":"https://api.github.com/users/joescii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joescii/subscriptions","organizations_url":"https://api.github.com/users/joescii/orgs","repos_url":"https://api.github.com/users/joescii/repos","events_url":"https://api.github.com/users/joescii/events{/privacy}","received_events_url":"https://api.github.com/users/joescii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-12T22:20:03Z","updated_at":"2015-03-12T22:20:03Z","closed_at":null,"body":"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`](https://github.com/sbt/sbt-site/blob/master/src/main/scala/com/typesafe/sbt/site/PamfletSupport.scala), it only reads the source directory today.  From there, Pamflet picks up the `template.properties` in [`produce.scala`](https://github.com/n8han/pamflet/blob/0.7.0/library/src/main/scala/produce.scala).  \r\n\r\nFrom 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.\r\n\r\nThat's what I've come up with thus far.  Do any of you see another better approach?\r\n\r\nThanks,\r\nJoe\r\n"}}