Jeremy Ruston
bd17a389cb
Move the cache from the Tiddler object to the WikiStore
...
It's not really a concern of the Tiddler object
2012-01-17 13:31:06 +00:00
Jeremy Ruston
b898afe3e5
Refactor the Tiddler object to enforce immutability
...
And in the process move the fields out of the fields member
2012-01-17 13:01:55 +00:00
Jeremy Ruston
ac61e2d251
Rejigged the link macro to accept child elements
2012-01-15 18:39:14 +00:00
Jeremy Ruston
606374e563
Added the image macro
2012-01-15 14:37:49 +00:00
Jeremy Ruston
4df13a3e24
Refactored link classes allocation
...
Don't need the classesForLink() method anymore. Also avoid modifying
the argument to adjustClassesForLink().
2012-01-15 13:48:13 +00:00
Jeremy Ruston
4681d14f39
Fixed the view macro to reuse the link macro
2012-01-15 13:37:50 +00:00
Jeremy Ruston
c4f9efd894
Get rid of the obsolete link refreshing circuitry
...
We're going to redo links as macros and take advantage of that circuitry
2012-01-15 13:27:59 +00:00
Jeremy Ruston
7c4d5b76ef
Refactored parameter names for renderTiddler()
2012-01-14 17:24:07 +00:00
Jeremy Ruston
b7d0942625
Added support for store events and basic refreshing
...
1s after loading you'll see the link to TiddlyWiki5 flip from italic to
normal text as that tiddler is created on a timer
2012-01-14 15:49:12 +00:00
Jeremy Ruston
0910ada5fb
Added support for compiling and rendering raw text blocks
2012-01-07 20:08:11 +00:00
Jeremy Ruston
9a73b0a6aa
Rejigged macro implementation
...
Now each macro is in a separate file, and is implemented as a function,
rather than being inlined into the compiled tiddler rendering function
2012-01-07 17:33:42 +00:00
Jeremy Ruston
d89ea0abd7
Cleaning up some macro definition wrinkles
2012-01-07 11:43:40 +00:00
Jeremy Ruston
bd617b2483
Adjusted link class detection
...
The problem is that it's sometimes useful to use URLs as the title of
tiddlers, making it hard to distinguish URLs from tiddler titles...
2012-01-07 10:35:02 +00:00
Jeremy Ruston
b92183a3a7
Take links into account when accumulating dependencies
2012-01-07 10:30:50 +00:00
Jeremy Ruston
c716cdce20
Added support for macros that are dependent on all other tiddlers
2012-01-06 21:08:15 +00:00
Jeremy Ruston
3d507c3bab
Refactored macro parameter parsing
...
So that it happens during parsing, not compilation. This will enable us
to do the dependency tracking during parsing, and not wait until
compilation time
2012-01-06 18:43:36 +00:00
Jeremy Ruston
86bf495dec
Removed some unused requires
2012-01-06 17:53:37 +00:00
Jeremy Ruston
14243acec9
Adding caching for tiddler parse trees, render functions, and renditions
2012-01-06 17:40:22 +00:00
Jeremy Ruston
e190cadcca
Minor tweaks to link class handling
2012-01-05 21:31:47 +00:00
Jeremy Ruston
f155c150e2
Improved handling of HTML links
...
And updates to tests and comments
2012-01-05 20:10:25 +00:00
Jeremy Ruston
57e3143d69
Refactoring the wikitext parser
...
To match the structure of the JavaScript parser, and make it less
complicated
2012-01-05 11:08:05 +00:00
Jeremy Ruston
1e02389f46
WikiStore cleanups
2012-01-04 19:44:38 +00:00
Jeremy Ruston
3ff1d9a76c
Cleaned up JavaScript processing
...
I'm slowly trying to make the JavaScript processing and the WikiText
processing use the same conventions
2012-01-04 18:31:19 +00:00
Jeremy Ruston
8a5a9bfa8b
Macro fixes
2012-01-04 11:57:45 +00:00
Jeremy Ruston
883956e855
Renamed Main.js to App.js
...
Because now we're going to use the same logic for the client and server
2012-01-03 11:38:15 +00:00
Jeremy Ruston
b8e7681342
Added macro helpers and macro definitions
...
The macro definitions will go out into their own tiddlers shortly
2012-01-03 11:09:59 +00:00
Jeremy Ruston
ed2e2ab14c
Complete switch over to pegjs
2011-12-28 22:07:17 +00:00
Jeremy Ruston
e02a484591
Removed TextProcessors() and TiddlerConverters() classes
2011-12-28 17:16:56 +00:00
Jeremy Ruston
32ff9e46b1
Added dummy support for missing tiddlers and orphans
...
And also proper support for getShadowTitles()
2011-12-28 16:10:30 +00:00
Jeremy Ruston
0823beb85d
Added template support to list macro
2011-12-16 10:48:36 +00:00
Jeremy Ruston
50e11a0da8
Added support for `list all` macro
2011-12-14 18:25:40 +00:00
Jeremy Ruston
d96053192b
Added support for the view macro, and client side wikitext tiddler templates
2011-12-14 15:45:42 +00:00
Jeremy Ruston
00f8021749
JSHint makes a hard task master...
2011-12-14 14:11:11 +00:00
Jeremy Ruston
8ed8772b82
Experimental support for client-side builds
...
These changes allow tiddlywiki.js to cook it's own components into a
skeletal new-school client-side TiddlyWiki.
2011-12-13 12:30:09 +00:00
Jeremy Ruston
f112048682
Added a function wrapper around all source files to keep JSHint happy
2011-12-12 10:52:04 +00:00
Jeremy Ruston
820bd02f8f
Added sortField and excludeTag to WikiStore.forEachTiddler
2011-12-12 08:59:28 +00:00
Jeremy Ruston
80d71d7bf4
Major refactoring of how wiki text parsing and rendering is packaged
2011-12-11 18:28:09 +00:00
Jeremy Ruston
7184bc5fa5
Lots of JSHint induced tweaks
...
Still not spotless
2011-12-09 16:34:02 +00:00
Jeremy Ruston
dd9537cd88
Renamed the store class from TiddlyWiki to WikiStore
...
Much less confusing.
2011-12-06 18:29:53 +00:00