domfs

Document Object Model as a filesystem for plan9 os
git clone git://nsmpr.xyz/domfs.git
Log | Files | Refs | README

commit 420bfdf81f0dfedc8d07a87bae5091b888952d67
parent 071112d10cfc16b3187c486734f7ec8b652f6dc9
Author: Pavel Renev <an2qzavok@gmail.com>
Date:   Sun, 31 Jan 2021 14:52:30 +0000

domprint: script to print dom out as text.

Future plan is to make it into htmlfmt replacement

Diffstat:
Arc/domprint | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/rc/domprint b/rc/domprint @@ -0,0 +1,7 @@ +#!/bin/rc + +for (n in `{walk -d -n1}) { + type=`{cat $n/type} + if (test ($type '=' text) -a (-f $n/text)) + cat $n/text +}