Nemerle Web Framework (Repost from RSDN)

177 views
Skip to first unread message

NN

unread,
Aug 9, 2012, 7:17:47 AM8/9/12
to nemer...@googlegroups.com
Original: http://www.rsdn.ru/forum/nemerle/4848137.1.aspx

In short it is continuing of WUI.Reactive but has been rewritten almost from scratch.
There is MMVM framework with a powerful Nemerle -> JavaScript translator.
http://knockoutjs.com/ is used currently for binding.

The project is in early alpha stage, there is much to do.
Currently supported pattern-matching, string interpolation and other nice stuff.

It is possible to talk with server in following way:

SomeClientSideFunction(user) {
   server.SaveUser(user, result => {
       //Do something with result
   });
}


Server is defined in nested class:

class Server {
   SaveUser(user : User) : string {
      db.Users.Update(user);
      $"User $(user.Name) succcessfully updated!"
   }
}

It is enough to define nested class with name "Server" in the model and you get access to server field with needed methods. Callback parameter is added automatically to each method.
Currently this is the only convention but others can be changed like 'ModelName'Server.

That's all, there is no roadmap but a lot of work to do.
If you are willing to help, you can join.

Repository: https://github.com/ionoy/NemerleWeb
Samples:http://nemerleweb.site44.com/index.html

Thanks to Vlad who helped me very much. Without his help I definitely couldn't understand all.

emp...@gmail.com

unread,
Aug 10, 2012, 6:37:00 AM8/10/12
to nemer...@googlegroups.com
Impressive! Keep it up :)

NN

unread,
Feb 11, 2013, 1:59:04 AM2/11/13
to nemer...@googlegroups.com
We have tutorial here: https://docs.google.com/document/d/1-6O562WH7XCpILAP_4j0RGpB7VV4nV01ZK2brQiWf_Q/edit#
Feel free to comment and help us improve it.
Reply all
Reply to author
Forward
0 new messages