
Follow your dreams, you can reach your goals, I'm living proof. BEEFFFCAKEEE BEEFFFCAKE!
So for a long time I've been dreaming of having a huge TiddlyWiki containing all sorts of notes - notes about travels, notes about software development, blog posts, events I am interested in, all my photos, all my Twitters ever etc etc.. The reason? I wanted them all in one central place, but wanted them loaded on demand.
The solution in my head was simple. You have a bag off stuff essential to the layout and functionality of your website - so this contains all your plugins, your all important
PageTemplate and
ViewTemplate and any thing else you really really want loaded on demand.
Then you
add a magic plugin to beefcake your tiddlers. The codes really simple and you only need to change one line: {{var bagurl = "/blog/index.cgi/bags/posts/";}}. At the top you write the path to the bag you want to pull from (this is your magical box of the universe, the world and everything - in my case it's called posts so I point to the bag url.)).
Now what happens is you point users at your common bag. They get all the essential stuff loaded and it's completely in your control about what is loaded. As the page loads, javascript and jquery kick in, and get a summarised version of that bag using TiddlyWeb's lovely restful api. Nothing is written to the DOM (yet) as this is expensive but instead saved in javascript and the plugin marks the Tiddlers found as in need of some beefcake. Now what happens is when a user tries to displayTiddler, it checks the store to see if the Tiddler about to be displayed is in need of some beefcake, if so it does another call to the TiddlyWeb restful api and makes that tiddler gain some weight so it works and looks as expected. There is a slight delay in the load of that tiddler but it works.
All you needed was Beefcake.
Compare
ccTiddly with Beefcaked TiddlyWeb and you'll see the difference.
Thanks for reading this far. Did I bore you or interest you? Let me get better at doing the latter and focus more on working on the good stuff...