Consider "external core" Feather Wiki #113
Labels
No Label
answered
bug
discussion
duplicate
enhancement
extension
help wanted
question
request
website update
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Reference: Alamantus/FeatherWiki#113
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
What's your idea?
With TiddlyWiki it's possible to load all the static javascript with script tag.
(For an example look at view-source:https://mptw5x.tiddlyhost.com/ ).
Could Feather Wiki work like that also? Would be easy to build an "external core edition"?
Is your idea trying to solve a specific problem?
Nah, just thinking about it. FeatherWiki is already tiny, but I'm curious about the idea of a Tiddlyhost save being just a few bytes of data.
Additional context
Might need to think of a new bird name.. :D
Hey @sbaird, I love this idea, and it should be super easy to add to the project since the build process already splits out the CSS and JS separately in order to inject it into the HTML! I can very easily just include those files in the Builds folder. The only drawback that I foresee could trip up anyone using it is the fact that the Custom Head content is both stored in the content JSON and injected into the HTML when saving because I couldn't figure out a reliable way to always grab the correct HTML from the head.
When using the external core, you'll have to make sure to manually inject the Custom Head content into the HTML. Within the Feather Wiki code, this is done using
FW.inject.esc(p.head, true)
directly before</head>
in the HTML, wherep
is the un-minified content normally stored in<script id=p type=application/json>
on the HTML output (found inFW.state.p
when loaded).Do you think that's okay/manageable?
Also, the JS would almost certainly be called "Feather Wiki Skeleton" and the CSS would be something like "Feather Wiki Plumage" 😄
I think that's okay, or perhaps I'm not following what the problem might be.
I imagine that only the static code that doesn't change between Feather Wiki versions would go in the 'external' js file. Everything else, including content json and html would remain in the main file.
So that implies there needs to be a clear delineation between the always static & potentially non-static content.