Open source framework for rapid development web/desktop application


#1

Hi Everyone !

What’s Your Opinion about Incoding framework ?

Let’s look few features:

IML

Define behaviour of your Ajax dynamic pages with NO Javascript code.

@Html.TextBoxFor(r => r.First)
@Html.TextBoxFor(r => r.Last)
@Html.TextBoxFor(r => r.Mark)

@(Html.When(JqueryBind.Click)
      .AjaxPost(Url.Dispatcher().Push(new AddCustomerCommand
                     {
                         First = Html.Selector().Name(r => r.First),
                         Last = Html.Selector().Name(r => r.Last)
                     }))
      .OnSuccess(dsl => dsl.WithId("customers").Core().Trigger.Incoding())
      .AsHtmlAttributes()
      .ToLink("Add"))

*note: code from .cshtml

MVD

Calling Commands and Queries from Razor Views using IML instead of Controller

public ActionResult Details(GetUserDetailsQuery query)
{
    var model = dispatcher.Query(query);
    return IncView(model);
}
@Url.Action("Details","Controller")

same sample but with MVD

Url.Dispatcher()
   .Query(new GetUserDetailsQuery())
   .AsView("~/Admin/Views/Users/Details.cshtml")

Have interest ? welcome to get started


.NET Foundation Website | Blog | Projects | Code of Conduct