The variables
Variables may have any composition but are case sensitive. They are defined in an ascii file of type sbs ( like txt ).
See the one in the '0 0systeme' folder. There are comments.
Déclaration
There are four keywords which begin with a '#' :
#SOURCE source destination
not used in AblyFTP : it is a declaration of file to treat
#FONCTION function
ignored, it means that a script function to include is needed
#APPORT variable
not used here : like EQUIV but for HTML forms variables
#EQUIV variable
It is the only used keyword and it is enough to make powerful substitutions.
The content of a variable begins the ligne after the declaration and ends the line before the next declaration or the end of the file.
A content of a variable MAY CONTAIN other variables. But there is no control of dead lock.
Call
To use a variable, you have to put it at its place in the ascii text between two '§'. For example : §style2§
Perhaps , you will need 2 other output of a variable :
§style2¤ : to put around the variable 2 line feeds
§style2µ : to put before each ( ' ) a ( \ ) : useful for Perl and JavaScript.
Activation
To activate the treatement, you must check the button near 'file var', in the manage entries dialog and choose a variables file.
If both two are set, all variables declarated are subtituted in the files who have an ascii extension, as defined in the same screen.
Verify
It is easy to verify a parameters setting. If you haven't yet created a local clone of the entry, do it.
Select this entry , click on new , put a disk letter in the place of the FTP url and any login . In the root folder file, put any folder : it will be created if needed.
Validate , and go to explore, update. Click on the Internet Explorer button, then on the 'Web' link of the entry : it is ok, you are seeing the result.
When the variables file is ok, the last thing to do is to update the Web with the initial entry.
substitue.exe version 0.001
With this software, you can use this kind of scripts without AblyFTP.
This version is very limited and is intented to be used when setting the parameters with the reference site. You must specify files in the same folder or in a sub folder of variables file. Here, the keyword '#SOURCE' is active.
Substitue make its own installation when loaded first. Don't forget to add to the sbs type an access to your favorite editor, to edit it with a right click of the mouse.