diff options
author | j-james | 2022-07-02 05:58:19 +0000 |
---|---|---|
committer | j-james | 2022-07-02 05:58:19 +0000 |
commit | aace82a89073d3547856742e9f3a403b1f3fba03 (patch) | |
tree | e430cd0b5b8688a4512b80981968ac6eff685f5d /src/gui | |
parent | 1b9287fcfb345aab4b31d7d6f4c0d330bd5e13f3 (diff) |
Move URI handling and rename node.nested to node.children
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/terminal.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/terminal.nim b/src/gui/terminal.nim index e893081..f4c7c92 100644 --- a/src/gui/terminal.nim +++ b/src/gui/terminal.nim @@ -9,7 +9,7 @@ proc print(node: Node, indent=0, raw=false) = stdout.write(" " & attribute[0] & "=" & attribute[1]) stdout.write(">") stdout.write('\n') - for i in node.nested: + for i in node.children: i.print(indent+2) if not raw: stdout.write(" ".repeat(indent)) @@ -28,7 +28,7 @@ proc renderSource*(html: Html) = node.print(0, true) when isMainModule: - import ../protocols/http, ../uri + import ../protocols/http, ../formats/uri let url = "https://example.org:443/index.html" let request = httpRequest(parseUrl(url)) let parsed = parseHTML(request.body) |