Skip to content

Instantly share code, notes, and snippets.

@mads-hartmann
Created August 2, 2010 12:24
Show Gist options
  • Save mads-hartmann/504558 to your computer and use it in GitHub Desktop.
Save mads-hartmann/504558 to your computer and use it in GitHub Desktop.
object MyOtherTemplate extends Template with Create {
def name = "goodbye"
def description = "Creates a file with a greeting and farewell in it"
def arguments = Argument("word") :: Nil
def files = Nil
override def dependencies = MyTemplate :: Nil
val path = "%s/farewell_injection.ssp".format(GlobalConfiguration.rootResources)
injectContentsOfFile(path) into("greetings.ssp") at("farewell")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment