delphimvcframework/tools/projectgenerator/Commands.TemplatesU.pas

60 lines
1.3 KiB
ObjectPascal
Raw Normal View History

2024-04-11 18:54:29 +02:00
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
2024-04-12 12:28:34 +02:00
uses CommandsU;
2024-04-11 18:54:29 +02:00
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.