From 4b3670fc6b037911be8a1320b5994eb89886e41f Mon Sep 17 00:00:00 2001 From: Qrius Date: Thu, 26 Sep 2024 00:11:05 +0200 Subject: Add man pages, add array function to SMP --- packaging/package_debian.sh | 3 +- skaldpress.1 | 50 ++++++++++++++++++++++++++++++++++ smp.1 | 2 +- src/macro_processor/macro_processor.rs | 12 ++++++++ src/skaldpress/parseopts.rs | 2 +- 5 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 skaldpress.1 diff --git a/packaging/package_debian.sh b/packaging/package_debian.sh index 73ad0cc..920574f 100755 --- a/packaging/package_debian.sh +++ b/packaging/package_debian.sh @@ -18,7 +18,8 @@ mkdir -p ${mandir} cp -r packaging/DEBIAN ${dir}/DEBIAN cp target/release/skaldpress ${bindir}/skaldpress -#cp skaldpress.1 ${mandir}/skaldpress.1 +cp skaldpress.1 ${mandir}/skaldpress.1 +cp smp.1 ${mandir}/smp.1 cd ${tmpdir} dpkg-deb --build skaldpress diff --git a/skaldpress.1 b/skaldpress.1 new file mode 100644 index 0000000..c6928e7 --- /dev/null +++ b/skaldpress.1 @@ -0,0 +1,50 @@ +.TH SKALDPRESS 1 2024-06-08 +.SH name +Skaldpress \- Templating engine +.SH SYNOPSIS +.B skaldpress [OPTIONS] + +.SH DESCRIPTION +.B smp +smp is a macro processor, made specifically for a usecase when doing templating of websites. + + +Macros which are available using skaldpress, in addition to the builtin smp(1)-macros +.IP "\fBtemplate(