#1 Re: mORMot 1 » Mustache Logic-less templates for Delphi » 2015-03-23 17:40:11

in my templates I want to generate interfaces and thus need to provided GUIDs. I'd like my generator program to automatically create these GUIDs.
i.e. my template should be

  Ixx1 = interface 
    ['{{GUID}}']
  end;
  Ixx2 = interface 
    ['{{GUID}}']
  end;

and the output e.g.

  Ixx1 = interface 
    ['{46DBA8EB-E9E3-4811-A2AF-B07895981A85}']
  end;
  Ixx2 = interface 
    ['{C9CB4B0A-EC28-49E8-9CC6-B549B3CCB354}']
  end;

What is be the best way to do this?
i.e. I think as a last resort, I could misuse the Internationalization feature..

Board footer

Powered by FluxBB