9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Pavel Renev <an2qzavok@gmail.com>
To: 9front@9front.org
Subject: Re: [9front] htmlfs
Date: Tue, 31 Aug 2021 13:20:29 +0000	[thread overview]
Message-ID: <3C2596FB-B368-4A1D-8974-F8F63A99E671@gmail.com> (raw)
In-Reply-To: <Xede7Ar-5KmjA0RfJmvQ7MSB--vaVUm-SgC51Aw0KtMwxbtGKbubKFyK2FSf7Qd-vQTr6GP_zPiyL10ggU59wTLPZqctXxQbmknwdyyiKsc=@protonmail.com>

I have a half-backed DOMfs:
http://git.nsmpr.xyz/domfs/files.html
but it just represents documents as a flat list of numbered nodes (the way rio serves its windows) and their hierarchy is provided through a separate file.

The challenge with xml/html is that unlike traditional file trees their elements do not have unique names and instead addressed by their order. Additionaly, element's attributes often play bigger role than text data they contain.
Style also can override tree hierarchy when it comes to rendering, and when it comes to javascript, programs look up needed elements via global search by id and usually only care about element's immediate parent/children.

TL;DR: the tree is a lie. 
Maybe serving html via some kind of database query interface would be better.

  parent reply	other threads:[~2021-09-01  1:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-29 21:05 Philip Silva
2021-08-30  4:12 ` Amavect
2021-08-31  5:33   ` unobe
2021-08-31  9:46     ` jstsmthrgk
2021-08-31 10:36       ` hiro
2021-08-31 12:29         ` Steve Simon
2021-09-01  6:53           ` hiro
2021-09-01  8:30             ` sirjofri
2021-09-01  9:02               ` kvik
2021-08-31 20:09     ` hiro
2021-08-31 22:40       ` Stuart Morrow
2021-08-31 11:49   ` hiro
2021-08-31 15:42     ` Philip Silva
2021-08-31  5:23 ` unobe
2021-08-31 13:20 ` Pavel Renev [this message]
2021-08-31 15:40   ` Philip Silva
2021-09-02 11:44   ` hiro
2021-09-02 12:32     ` hiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C2596FB-B368-4A1D-8974-F8F63A99E671@gmail.com \
    --to=an2qzavok@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).