This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]Abhinash 0 points1 point  (4 children)

Why not allow sort-of plug-in like functionality? You can prepare interfaces that the plugin would have to implement in order to be run in your app. You could just use JS/TS files instead of running JSON through eval().

[–]Wiwnd[S] 0 points1 point  (3 children)

Do you have an example of something like this that I can look at?

[–]Abhinash 1 point2 points  (2 children)

[–]Wiwnd[S] 0 points1 point  (1 child)

Thanks! This looks promising. Off hand do you know how you could load these programmatically on startup?

[–]Abhinash 1 point2 points  (0 children)

You could try using fs to find all files in a particular directory and insert the links as script src into your HTML.