pp
in the content of documents anyway because I'm escaping everything.
pp
in the content of documents anyway because I'm escaping everything.
p
directory, about quotes, maybe you can sed
files. You really don't have to use mkws
but I'm just saying that it's not impossible.
p
directory, about quotes, maybe you can sed
files. You really don't have to use mkws
but I'm just saying that it's not impossible.
mkws
script to your preference, this is how I generate my blog:\n\n\nfor p in "$srcdir"/p/*\ndo\n test "${p##*.}" == "html" && continue\n echo "Making p/$(echo "${p##*/}" | cut -c21-).html"\n pp "$sharedir"/l.upphtml "$p" "$1" > "p/$(echo "${p##*/}" | cut -c21-).html"\n\ndone\n
\nDo some loops there. Here's how @eldersnake does it https://www.andrewjvpowell.com/pastebin/1612574353/. It doesn't have to be great, just make it work.
mkws
script to your preference, this is how I generate my blog:
for p in "$srcdir"/p/*
do
test "${p##*.}" == "html" && continue
echo "Making p/$(echo "${p##*/}" | cut -c21-).html"
pp "$sharedir"/l.upphtml "$p" "$1" > "p/$(echo "${p##*/}" | cut -c21-).html"
done
Do some loops there. Here's how @eldersnake does it https://www.andrewjvpowell.com/pastebin/1612574353/. It doesn't have to be great, just make it work.
mkws
script to your preference, this is how I generate my blog:\n\n\nfor p in "$srcdir"/p/*\ndo\n test "${p##*.}" == "html" && continue\n echo "Making p/$(echo "${p##*/}" | cut -c21-).html"\n pp "$sharedir"/l.upphtml "$p" "$1" > "p/$(echo "${p##*/}" | cut -c21-).html"\n\ndone\n
\nDo some loops there. Here's how @eldersnake does it https://www.andrewjvpowell.com/pastebin/1612574353/. It doesn't have to be great, just make it work.
sed
ing files, that's what I'm already doing. At the moment, I just can't benefit from pp
inside my content documents because I'm escaping everything. I agree it's not impossible, I'm sure I could make sed
skip sections for pp
, but the end result would be even more of a complicated mess of a shell script than the one I have now. I really don't want to deal with something like that when it's not that much of a chore, in the grand scheme of things, to maintain it manually.
sed
ing files, that's what I'm already doing. At the moment, I just can't benefit from pp
inside my content documents because I'm escaping everything. I agree it's not impossible, I'm sure I could make sed
skip sections for pp
, but the end result would be even more of a complicated mess of a shell script than the one I have now. I really don't want to deal with something like that when it's not that much of a chore, in the grand scheme of things, to maintain it manually.
sed
the quoted documents to unquoted ones and process those using temp files. Again, if your current setup works don't change it especially not for that sake of change.\n\n> But the end result would be even more of a complicated mess of a shell script than the one I have now.\n\nDepends on what you understand by "mess" and "complicated". š
sed
the quoted documents to unquoted ones and process those using temp files. Again, if your current setup works don't change it especially not for that sake of change.> But the end result would be even more of a complicated mess of a shell script than the one I have now.
Depends on what you understand by "mess" and "complicated". š
sed
the quoted documents to unquoted ones and process those using temp files. Again, if your current setup works don't change it especially not for that sake of change.\n\n> But the end result would be even more of a complicated mess of a shell script than the one I have now.\n\nDepends on what you understand by "mess" and "complicated". š
mkws
is very tolerant to "mess".
mkws
is very tolerant to "mess".
> Depends on what you understand by "mess" and "complicated"
It's 55 lines long and I'm having trouble understanding it as I read through it, less than a week after it was written.
No need to apologize.
> Depends on what you understand by āmessā and ācomplicatedā
Itās 55 lines long and Iām having trouble understanding it as I read through it, less than a week after it was written.
> Depends on what you understand by āmessā and ācomplicatedā
Itās 55 lines long and Iām having trouble understanding it as I read through it, less than a week after it was written.
\n> Depends on what you understand by āmessā and ācomplicatedā\n\nItās 55 lines long and Iām having trouble understanding it as I read through it, less than a week after it was written.\n
\n\n> Depends on what you understand by āmessā and ācomplicatedā\n\nItās 55 lines long and Iām having trouble understanding it as I read through it, less than a week after it was written.
\n> Depends on what you understand by āmessā and ācomplicatedā\n\nItās 55 lines long and Iām having trouble understanding it as I read through it, less than a week after it was written.\n
\n\n> Depends on what you understand by āmessā and ācomplicatedā\n\nItās 55 lines long and Iām having trouble understanding it as I read through it, less than a week after it was written.
> I really appreciate your help but as I said in my blog post, I just need to make my own generator in a real programming language if I want it to be exactly right for my website.
I personally don't believe you need help and I don't believe you need to make your own generator, but if you personally decide it's a good idea go for it.
mkws
would be slightly overkill (or at least I donāt need pp
) I basically just do this:o
echo "Making $i..."
cat templates/header-begin.html ${i%.html}.meta templates/header-end.html $i templates/footer.html > public/$i
done
Then my working directory looks like
index.html index.meta about-us.html about-us.meta
etc etc.
mkws
would be slightly overkill (or at least I donāt need pp
) I basically just do this:\nfor i in $dir/*.html; do\necho "Making $i..."\ncat templates/header-begin.html ${i%.html}.meta templates/header-end.html $i templates/footer.html > public/$i\ndone\n
\nThen my working directory looks like index.html index.meta about-us.html about-us.meta
etc etc.