rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: Mars on March 03, 2008, 12:38:24 AM

Title: Working with the old syntax under build 181
Post by: Mars on March 03, 2008, 12:38:24 AM
Rejetto, you can add one option in MENU-DEBUG

'Allow old Macros'

above Enable Macros.log

Quote
CODE
     object highSpeedChk: TMenuItem
        AutoCheck = True
        Caption = 'Experimental high speed handling'
        Checked = True
      end
      object macrosOldChk: TMenuItem
        AutoCheck = True
        Caption = 'Allow old Macros'
      end
      object macrosLogChk: TMenuItem
        AutoCheck = True
        Caption = 'Enable macros.log'
      end

Quote
CODE
    macrosLogChk: TMenuItem;
    macrosOldchk: TMenuItem;

Quote
CODE

  function add2diff(s:string):boolean;
  begin
  result:=FALSE;
  if s = '' then exit;
  if mainfrm.macrosOldchk.checked then convertNewMacroSyntax(s);    //added by mars
  diff:=s + ifThen((diff > '') and not isSectionAT(@diff[1]), '[]'+CRLF) + diff;
  result:=TRUE;
  end; // add2diff


It is by waiting to convert all the templates.

to test this: http://hfs.webhop.org/hfs-build-180-by-mars.zip (http://hfs.webhop.org/hfs-build-180-by-mars.zip)
Title: Re: Working with the old syntax under build 181
Post by: rejetto-unlogged on March 03, 2008, 12:01:05 PM
i will just put an autoconverter for the diff tpl as it is now for the main tpl.
transparent to the user.
thanks for reporting.