webbed-site/scripts/include

9 lines
207 B
Plaintext
Raw Normal View History

#!/bin/sh
2024-09-01 15:07:27 -07:00
output="$(python3 -u -c "import sludge.src.lib.content; print(sludge.src.lib.content.parse_file('$1'))")"
if [ -z "${2}" ]; then
echo "${output}" | sed "${2}"
else
echo "${output}"
fi