From 45f9f608d39289131548a0e1d7962617cf3c028e Mon Sep 17 00:00:00 2001 From: Qrius Date: Wed, 23 Apr 2025 14:25:05 +0200 Subject: Prepare deb packaging, switch markdown dependency --- README | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 README (limited to 'README') diff --git a/README b/README new file mode 100644 index 0000000..713429f --- /dev/null +++ b/README @@ -0,0 +1,92 @@ +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(,