I seems you'd like the TiddlyWiki to load the plugin on demand during
startup? That sounds like an interesting idea.
An alternative is to use small bash script to cook the HTML file and
reload the page, which on the Mac is "open index.html" for the default
browser.
So for vi that's :w^M:!!^M then ALT-TAB to the browser where the page is ready.
This has the advantage that the development index.html is the same
single file released with bundled the released plugin, demo data and
tests.
--
Paul (psd)
http://blog.whatfettle.com
As you probably know, the standard method is to use Cook (which
basically just concatenates a bunch of files, both HTML and JavaScript,
to create a TiddlyWiki document) - however, that compilation constitues
an intermediate (if quick and painless) step, so you can't just reload
the page in the browser.
The alternative of including external content via a plugin is worth
exploring - I haven't played with any of the options in quite a while,
but this might be worth reviewing:
http://tiddlywiki.org/wiki/Including_External_Content
http://groups.google.com/group/TiddlyWiki/t/b602aa688c9fc2fa/
If you're using TiddlyWeb, you can use the devstore or a curl script - I
sometimes use a script that periodically PUTs a given JavaScript file to
the server as a systemConfig tiddler:
http://gist.github.com/494323
-- F.
https://addons.mozilla.org/en-US/firefox/addon/4125/
https://chrome.google.com/extensions/detail/ljobjlafonikaiipfkggjbhkghgicgoh?hl=en
Best wishes
Jeremy
> --
> You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
> To post to this group, send email to tiddly...@googlegroups.com.
> To unsubscribe from this group, send email to tiddlywikide...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/tiddlywikidev?hl=en.
>
>
--
Jeremy Ruston
mailto:jer...@osmosoft.com
http://www.tiddlywiki.com
Indeed, I frequently use Vimperator's built-in functionality for this to
shove tiddler contents into Vim and back - works quite well, and better
still if you have some simple scripts to mirror the contents in a .js
file on your HDD.
-- F.
Cheers
Jeremy
--
http://jermolene.com
http://tiddlywiki.com
http://osmosoft.com
There's not a lot to it. There's a wiki page:
http://trac.tiddlywiki.org/wiki/Cook
but I've learnt by example from recipes in the svn repo:
http://svn.tiddlywiki.org/Trunk/core/tiddlywiki.html.recipe
http://svn.tiddlywiki.org/Trunk/verticals/TiddlySlidy/index.html.recipe
> Does cook work under XP?
I believe so. It's written in Ruby which is pretty platform independent:
http://svn.tiddlywiki.org/Trunk/tools/cooker/cook.rb
> I do like linux, but for now xp runs just fine. On
> the other hand, I have no inclinations to install cygwin. ;o)
heh.
> Or is cook that "straight forward" that it might be rewritten as a bat
> or powershell file?
The bit of cook I use is pretty small, though most recipes use the
core recipe which uses templates, copyright and most every feature.
Might be an interesting academic exercise to refactor it into
JavaScript.
I've considered that and it is fine up until the point where the
plugin itself contains template that need to be accessed as tiddler
text. I could work around that by having the plugin create that stuff
as shadow tiddlers. Yet, in my current case that's really not what I
want as these templates are not intended for others to be edited.
On the other hand, as a general question, at the time of loading those
plugins via MarkupPreHead, would the core be ready to register
shadows, etc?