aboutsummaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-29 00:22:00 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-29 00:26:56 +0200
commit8028c5a15a65dfdacb9ba8250c88e338546b49dc (patch)
tree968f3643852a6382f00dc0bd51ff0f659966f31b /src/server
parent8268ba2cf049be1865875e3e01305a500fa533e2 (diff)
downloadchawan-8028c5a15a65dfdacb9ba8250c88e338546b49dc.tar.gz
config: add various missing options
Mainly things you could already set with [[siteconf]] but not normally. Also, a `styling' option to disable author styles. Also, `images' is now documented as an "experimental" option, since it's halfway usable now.
Diffstat (limited to 'src/server')
-rw-r--r--src/server/buffer.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim
index f14cda60..d84bc29c 100644
--- a/src/server/buffer.nim
+++ b/src/server/buffer.nim
@@ -134,6 +134,7 @@ type
BufferConfig* = object
userstyle*: string
referer_from*: bool
+ styling*: bool
scripting*: bool
images*: bool
isdump*: bool
@@ -870,6 +871,7 @@ proc setHTML(buffer: Buffer) =
buffer.window = newWindow(
buffer.config.scripting,
buffer.config.images,
+ buffer.config.styling,
buffer.selector,
buffer.attrs,
factory,