webbed-site/scripts/include

9 lines
207 B
Bash
Executable File

#!/bin/sh
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