Button handy | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
It is a good idea to keep data (such as JSON) and queries (such as SQL) in a separate file. The reason for this is because the data tends to read better. This article discusses techniques for keeping data in a separate file and how to import the data into a SIL script.
...
Info |
---|
Note that there are no forward slashes at the beginning of a relative path. Dot slash notation “./” is not supported. |
Using the replace()
...
Function
Using the replace() routine function is absolutely essential if we want to treat data values as a variable. In our example below, let’s say we want to create a custom template. To create a variable in the target file, wrap the variable name in curly braces using the following format: ${<name of variable goes here>}
.
...