Class TiddlyWiki
In: r4tw.rb
Parent: Object

Methods

Attributes

orig_tiddlers  [RW] 
raw  [RW] 
tiddlers  [RW] 

Public Class methods

doesn‘t do much. probably should allow an empty file param

Public Instance methods

add a core hack it will be applied to the entire TW core like this gsub(regexp,replace)

adds a shadow tiddler note that tags and other fields aren‘t preserved

adds a shadow tiddler from a file

add shadow tiddlers from files found in directory dir_name

adds a tiddler

add tiddlers from a list of file names ignores file names starting with # so you can do this

 %w[
  foo
  bar
  #baz
 ]

and it will skip baz

add tiddlers from files found in directory dir_name TODO exclude pattern?

if you have a file containing just tiddler divs you can read them all in with this

copy all tiddlers from another TW file into this TW good for creating Tiddlyspot flavours

get a tidler by name

this should replace all the add_tiddler_from_blah methods but actually they are still there below testing required

takes a list of file_names, reads their content and converts them to javascript creation of shadow tiddlers then appends that to the contents of file_name (sorry, confusing)

add a list of files found in dir_name packaged as javascript to create shadow tiddlers append the javascript to the contents of file_name (needs more explanation perhaps) see also package_as

removes a tiddler by name

initialise a TiddlyWiki from a source file will treat empty_file as a url if it looks like one note that it doesn‘t have to be literally empty

reads an empty from a file on disk

writes just the store contents to a file

writes just the store area to a file the file can be used with ImportTiddlers to save download bandwidth

output just the contents of the store

an array of tiddler titles

returns an array of tiddlers containing a particular tag

writes the entire TiddlyWiki to a file

output the TiddlyWiki file

[Validate]