Skip to content

Instantly share code, notes, and snippets.

@bcm
Created February 13, 2011 19:29
Show Gist options
  • Save bcm/824985 to your computer and use it in GitHub Desktop.
Save bcm/824985 to your computer and use it in GitHub Desktop.
default imports for scalate templates
import org.fusesource.scalate.{Binding, TemplateSource}
import org.fusesource.scalate.support.TemplatePackage
class ScalatePackage extends TemplatePackage {
def header(source: TemplateSource, bindings: List[Binding]) = """
import in.outside.slingshot._, controllers._, helpers._, models._
import ru.circumflex.web._
"""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment