←back to thread

359 points california-og | 2 comments | | HN request time: 0.399s | source
Show context
squeegee_scream ◴[] No.42172100[source]
Reactive HTML but it’s almost entirely JavaScript, or am I misunderstanding something?
replies(2): >>42172211 #>>42173680 #
california-og ◴[] No.42172211[source]
It's JavaScript for the interactive/reactive parts, but the notebook is implemented in a self-contained HTML file: it handles everything from document structure to editing and display. It's also not dependant on 3rd party software (par browser), and is as durable, portable and easy-to-use as any HTML is.
replies(1): >>42172633 #
rounce ◴[] No.42172633[source]
It imports the ObservableHQ runtime in one of the first code blocks.
replies(1): >>42173191 #
1. RodgerTheGreat ◴[] No.42173191[source]
In principle those external dependencies could be rolled together into one document and produce something truly freestanding. Once one decides to inline everything, opportunities arise to produce something simpler and more coherent.
replies(1): >>42175785 #
2. tlarkworthy ◴[] No.42175785[source]
I actually did that in observable userspace https://observablehq.com/@tomlarkworthy/exporter