Skip to content

Instantly share code, notes, and snippets.

@al3x
Created June 8, 2010 22:38
Show Gist options
  • Save al3x/430748 to your computer and use it in GitHub Desktop.
Save al3x/430748 to your computer and use it in GitHub Desktop.
/* NOTE this file is autogenerated by Scalate : see http://scalate.fusesource.org/ */
package Application
import _root_.scala.collection.JavaConversions._
import controllers._;import models._;import play.utils._
object $_scalate_$index_ssp{
def $_scalate_$render($_scalate_$_context:_root_.org.fusesource.scalate.RenderContext): Unit = {
val context:org.fusesource.scalate.DefaultRenderContext = ($_scalate_$_context.attributes.get("context") match {
case Some(value) => value.asInstanceOf[org.fusesource.scalate.DefaultRenderContext]
case None => throw new _root_.org.fusesource.scalate.NoValueSetException("context")
});
import context._;
{
val playcontext:play.mvc.PlayContext$ = ($_scalate_$_context.attributes.get("playcontext") match {
case Some(value) => value.asInstanceOf[play.mvc.PlayContext$]
case None => throw new _root_.org.fusesource.scalate.NoValueSetException("playcontext")
});
import playcontext._;
{
val name:String = ($_scalate_$_context.attributes.get("name") match {
case Some(value) => value.asInstanceOf[String]
case None => throw new _root_.org.fusesource.scalate.NoValueSetException("name")
});
{
$_scalate_$_context << ( "\nwhat up " );
$_scalate_$_context <<< ( name )
$_scalate_$_context << ( "\n" );
}
}
}
}
}
class $_scalate_$index_ssp extends _root_.org.fusesource.scalate.Template {
def render(context:_root_.org.fusesource.scalate.RenderContext): Unit = $_scalate_$index_ssp.$_scalate_$render(context);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment