mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
60 lines
1.3 KiB
ObjectPascal
60 lines
1.3 KiB
ObjectPascal
unit Commands.TemplatesU;
|
|
|
|
interface
|
|
|
|
uses
|
|
System.Generics.Collections, CommonsU, ProjectGeneratorU;
|
|
|
|
procedure FillProgramTemplates(Gen: TMVCCodeGenerator);
|
|
procedure FillControllerTemplates(Gen: TMVCCodeGenerator);
|
|
procedure FillWebModuleTemplates(Gen: TMVCCodeGenerator);
|
|
procedure FillWebModuleDFMTemplates(Gen: TMVCCodeGenerator);
|
|
procedure FillJSONRPCTemplates(Gen: TMVCCodeGenerator);
|
|
|
|
implementation
|
|
|
|
uses CommandsU;
|
|
|
|
procedure FillProgramTemplates(Gen: TMVCCodeGenerator);
|
|
begin
|
|
Gen.Commands.AddRange([
|
|
TUnitProgramCommand.Create,
|
|
TUnitRunServerProcBody.Create,
|
|
TUnitMainBeginEndCommand.Create
|
|
]);
|
|
end;
|
|
|
|
procedure FillControllerTemplates(Gen: TMVCCodeGenerator);
|
|
begin
|
|
Gen.Commands.AddRange([
|
|
TUnitControllerCommand.Create,
|
|
TUnitControllerEntityDeclarationCommand.Create,
|
|
TUnitControllerControllerDeclarationCommand.Create,
|
|
TUnitFooterCommand.Create
|
|
]);
|
|
end;
|
|
|
|
procedure FillWebModuleTemplates(Gen: TMVCCodeGenerator);
|
|
begin
|
|
Gen.Commands.AddRange([
|
|
TUnitWebModuleDeclarationCommand.Create
|
|
]);
|
|
end;
|
|
|
|
procedure FillJSONRPCTemplates(Gen: TMVCCodeGenerator);
|
|
begin
|
|
Gen.Commands.AddRange([
|
|
TUnitJSONRPCDeclarationCommand.Create
|
|
]);
|
|
end;
|
|
|
|
procedure FillWebModuleDFMTemplates(Gen: TMVCCodeGenerator);
|
|
begin
|
|
Gen.Commands.AddRange([
|
|
TWebModuleDFMCommand.Create
|
|
]);
|
|
end;
|
|
|
|
|
|
end.
|