Delphi MVC Web Framework – “Hello World”

This is the first “Hello World” for my Delphi MVC Web Framework. program DelphiMVCWebFramework; {$APPTYPE CONSOLE} uses System.SysUtils, MVCEngine in 'MVCEngine.pas', BaseController in 'BaseController.pas'; var mvc: TWebMVCEngine; begin mvc := TWebMVCEngine.Create; mvc.AddRoute('/', procedure(Context: TWebContext) begin Context.Write('Hello World'); end).Start(8080); ReadLn; mvc.Free; end. Features list (some of them are in the internal roadmap) Completely MVC Addressable with servername/controllername/actionname?par1&par2 Addressable with servername/controllername/actionname/par1/par2 Can also use anonymous methods as actions for very simple app (in the sample) Really RESTful (Level 3 of the Richardson Maturity Model) Fully integrable into WebBroker and DataSnap Supports multiple resource rapresentations Completely customizable routing using internal formatting or regex…
Continua a leggere →

#1 “dorm, the Delphi ORM” bullettin

This is the first post regarding a fast update on the last changes to the dorm project in terms of management and code. Welcome to 2 new contributors: mrbar2000 and magnomp (this is the full list http://code.google.com/p/delphi-orm/people/list) Added a PersistentStrategy for SQLite. New Google Group related to dorm. Post your questions, comments and request here! Added support for Generics Collections. No more needs of TdormCollection. You classes are completely decoupled from the framework. A brand new mapping strategy is under development. There will be “3 levels” of mapping: Config File, RTTI Attributes and “Conventions Over Configuration” (CoC) (do you wanna check the code in…
Continua a leggere →