чување ba687d65c00cc70d1b2ab2ab0a2a5b98cf0555b0
родитељ f84e37a8265240fa802e3638a4b5ad79494f1ef4
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Sat, 11 Sep 2021 13:59:28 +0200
README, index.slw: Added Q&A
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 2, додавања: 45(+), брисања: 0(-)
diff --git a/README b/README
@@ -6,6 +6,28 @@ slweb is a static website generator which aims at being simplistic. It
transforms custom Markdown-like syntax into HTML.
+ Q&A
+ ---
+
+Q: Is this suckless?
+A: No. SGML, and by extension, HTML, isn't suckless.
+
+Q: Why do you call it "simple" then?
+A: Because one is not the synonym for the other.
+
+Q: Why not make a website generator as a shell script?
+A: slweb was a shell script in its conception (check its history of commits in
+ git). However, I wanted to implement Markdown links with link ids
+ [like][this]. This requires multiple passes by the parser and is better
+ implemented as a full-blown program in C anyway. The other reason was that
+ sed and awk have limits, which some of my pages hit.
+
+ [this]: https://some.site
+
+Q: My static website generator is "truly simple", this is not simple!
+A: Good for you. By the way, that is a statement and not a question.
+
+
Install
-------
diff --git a/index.slw b/index.slw
@@ -15,6 +15,29 @@ meta: index-meta.csv
transforms custom Markdown-like syntax into HTML.
+## Q&A
+
+```
+Q: Is this suckless?
+A: No. SGML, and by extension, HTML, isn't suckless.
+
+Q: Why do you call it "simple" then?
+A: Because one is not the synonym for the other.
+
+Q: Why not make a website generator as a shell script?
+A: slweb was a shell script in its conception (check its history of commits in
+ git). However, I wanted to implement Markdown links with link ids
+ [like][this]. This requires multiple passes by the parser and is better
+ implemented as a full-blown program in C anyway. The other reason was that
+ sed and awk have limits, which some of my pages hit.
+
+ [this]: https://some.site
+
+Q: My static website generator is "truly simple", this is not simple!
+A: Good for you. By the way, that is a statement and not a question.
+```
+
+
## Prerequisites
* C compiler (**GCC**-compatible) - `${SLWEB_CC:-gcc -g}`