Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

srails
--------------

A rails style web framework for Scala.

$ sbt
> update
> jetty-run

-------------
Controller
-------------

package com.cmoos.helloworld

import com.cmoos.srails._

class MainController extends Controller {
  def index() {
    log.info("MainController: index")
    render_text("Hello, world!")
  }
}


-------------
Config
-------------

routes {
  index {
    path = "^/"
    controller = "com.cmoos.helloworld.MainController"
    action = "index"
  }
}

About

a rails style web framework for scala

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages