SMX (from Server Macro Expansion) is a macro processing language designed to embed macros in web pages. Originally shipped with the popular Internet Business Builder software, it has been ported as an Apache module.
SMX was designed to embed macros in HTML / XML pages. It was originally shipped with the Internet Factory’s Commerce Builder software, a relatively popular web server in the early days of the Internet, due to the ease with which a developer could produce an e-commerce website. Rather than re-implement websites in more popular languages, like Perl or PHP, a small group of SMX fans. A good example of a macro is% counter. This embeds a simple incremental counter on an HTML page. To include the results of a SQL query on a page, you can simply type% dsn (<dsn>, <query>,% col (1) <br />) in the middle of an XHTML page. Owing to the high-level nature of the language,
Unlike many programming languages, SMX syntax is simple and consistent. All functions begin with a% sign, followed by the name of the function, followed by a single% sign or a parenthetical list of arguments. Arguments can be quoted using double-quotes. Backslashes can be used to escape commas and double-quotes. A single quote at the beginning of an argument turns off the interpretation of code in that argument (similar to LISP). Everything is not code, is, by default, output. To change this behavior, use the% nil or% null macros.