edjafarov / aries

AriesNode is a MVC framework for node.
aries.no.de
10 stars 0 forks source link

Model to request binding #22

Open edjafarov opened 13 years ago

edjafarov commented 13 years ago

This will be a nice feature:

function someController(request, response, /** @bind(modelName) */ paramName){
/* controller  where paramName have param1, param2 that is number and param3*/
}

/**
* @Model(name="modelName")
*/
function ModelExample{

           this.param1 = null;
           /**
            * @isNumber
            */
           this.param2 = null;
           this.param3 = null;
   }

This feature can be done in 2 waves - second wave is about validation.