Skip to content

dannylagrouw/skikweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Skik – A Scala Web Framework

Skik is a project to port Ruby on Rails (v2) to Scala. At the moment, it is still in its very early stages. Work is being done mostly on ActiveRecord for now, using the Agile Web Development with Rails book (2nd edition) as a measure for completeness.

As Scala is a different language from Ruby, don’t expect constructs to look exactly the same. Instead, the aim is to…

  • Keep the api/syntax as simple as the original one;
  • Use idiomatic Scala, don’t try to “Rubyfy” Scala;
  • Make possible a purely textual conversion from Rails syntax to Skik.

Examples

val pos = Order.findAll(
    Conditions("name = :name and pay_type = :pay_type",
        Map('name -> "Smith", 'pay_type -> "po")),
    Order("id desc"))

val joe = Person.findFirst(By('first_name -> "Joe", 'last_name -> "Smith"))

joe.updateAttributes('first_name -> "Barney", 'email -> "barney@bedrock.com")

You will find Skik versions of sample code from the Rails book in SkikBook.doc.

About

Skik Web Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages