SMP(1) General Commands Manual SMP(1) name Skaldpress Macro Processor - Macro processor SYNOPSIS smp [input_file] DESCRIPTION smp smp is a macro processor, made specifically for a usecase when doing templating of websites. Macros include() Includes a file in-place, performing macro-expansion on it. NOTE, THERE IS NO LOOP PROTECTION HERE! include_varbatim() Same as include, but does not expand macros. define( [, ]) This defines a macro, optionally with some content. The optional content will be expanded immediately, and later the already processed content will be included in the output. ifdef(, [, ]) ifndef(, [, ]) ifeq(, , [, ]) ifneq(, , [, ]) shell() Runs command on shell, and includes the command output in the output expr(, , ..., ) Shorthand for running the expr command, expands all arguments, and executes it on the shell. define_array() Defines a macro as a array, this can later be used with macros like array_push and array_each. array_push(, [, ]) On a macro that is defined as a array, this will add one or more elements. array_each(,