From 94a10242dca6181ef8f15a37e7083069ead09559 Mon Sep 17 00:00:00 2001 From: bptato Date: Wed, 17 Mar 2021 12:20:05 +0100 Subject: ... --- src/main.nim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main.nim') diff --git a/src/main.nim b/src/main.nim index bc212ef0..95f1f3cd 100644 --- a/src/main.nim +++ b/src/main.nim @@ -8,7 +8,9 @@ import termattrs import buffer import twtio import config -import parser +import htmlparser +import dom +import style let clientInstance = newHttpClient() proc loadRemotePage*(url: string): string = @@ -44,6 +46,9 @@ proc main*() = let uri = parseUri(paramStr(1)) buffers.add(buffer) buffer.document = parseHtml(getPageUri(uri)) + #discard buffer.document.querySelector("#hi.a[title=\"test\"]") + var box = CSSBox() + applyProperties(box, "color: #090; line-height: 1.2") buffer.setLocation(uri) buffer.renderHtml() var lastUri = uri -- cgit 1.4.1-2-gfad0