-
Notifications
You must be signed in to change notification settings - Fork 37
Suggestion: Move core logic into seperate ArchiveΒ #41
Description
One issue that has become apparent with the current version of the beaker site (unless I'm missing something) is that users don't automatically get updates for the core scripts and styles. I think this will be important for the ux of non-devs, so I suggest the following: split rotonde into two archives.
- The User Portal which would just be the
index.html,media/contentand thelinks/custom.css - The Rotonde Core which would contain pretty much everything else in
scripts/andlinks/andmedia/.
You could do this by swapping the relative paths in the <link> & <script> tags for absolute urls to an external Dat Archive.
- <link rel="stylesheet" type="text/css" href="links/main.css"/>
+ <link rel="stylesheet" type="text/css" href="dat://6074e23e900e310aac23a6ed098dfde3f65f4297c8e8077717df1460fbb9d87d/links/main.css"/>You would then be able to push updates to the "Rotonde Core" and all users would automatically get the latest bits as long as they keep these links. If they want to customize any of this, they can just download the file, drop it in their Portal archive and link to it there. If you wanted to go the extra mile, we could even create a quick "Eject" button of sorts that would automatically do this for them and would essentially lock the files down to their current version and stop accepting updates from core.
Example
Portal
git: https://github.com/webdesserts/rolling-rotonde
dat: dat://rolling-rotonde.webdesserts.com
Core
git: https://github.com/webdesserts/rolling-rotonde-core
dat: dat://rolling-rotonde-core.webdesserts.com