Delphi MVC Web Framework - "Hello World"

Posted on gio 02 febbraio 2012 in Delphi XE, Delphi XE2, Design Patterns, dorm, Embarcadero, MVC, RTTI

This is the first "Hello World" for my Delphi MVC Web Framework.

``` {lang="delphi"} 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 …


Continue reading