-
Notifications
You must be signed in to change notification settings - Fork 24
Browser support #209
Comments
This seems possible, but I'm not sure how useful it would be unless all transclusion links were HTTP paths? Would this be your intended use case? |
Thanks for your prompt reply! Our intended use case is to permit client side assembly of document structures which would have transcluded content. The big picture use case is enabling content reuse within the content as code approach. It could also play a role in keeping transcluded content up to date, in "real time", on the browser side as suggested in the Right now I'm aiming to test the concept through a fork of prose which is a backbone app, aiming to help preview documents that transclude other documents in a github repo. This work is described in the issue iilab/prose#1. This would mean that in addition to transclusion of http paths, we would look for the possibility to do some form of overloading of the function which returns the input for the 'file' hrefType? Maybe The other hurdle is the spawn which is not available in the browser. Maybe this could be addressed with a module like https://github.com/anodynos/node2web_child_process Then there's the question of packaging and whether you'd want to distribute a different package for the browser version, which would have impact on maintainability. Of course a topic branch would be very much sufficient for my experiment and giving you feedback! |
This sounds really interesting! I was just noting some of the similarities to Xanadu and then I saw the reference in the diagram 😉 I spent a couple of minutes running Hercule through Browserify yesterday, and HTTP transclusion looks to run without issue. I like the idea of renaming a link without protocol The process spawning was really only added for scripting applications where it can be inconvenient to handle async code. If you use the async |
Any chance this could run in the browser one day?
The text was updated successfully, but these errors were encountered: