1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-09 11:29:58 +00:00
Commit Graph

71 Commits

Author SHA1 Message Date
Jeremy Ruston
a65713650e Fixed macro execution in renderTiddler and renderMacro 2012-03-07 17:42:41 +00:00
Jeremy Ruston
4999a3b729 Added an option to specify default mime type in parseText() 2012-03-03 18:07:33 +00:00
Jeremy Ruston
8552f2f894 Use the new esprima parser to display javascript modules as parse trees 2012-03-01 23:59:46 +00:00
Jeremy Ruston
5ca478d106 Get rid of the Renderer() wrapper and use the MacroNode directly 2012-02-20 20:52:54 +00:00
Jeremy Ruston
53f652bf2a Refactored evaluation of macro dependencies
Now the dependencies are evaluated in the constructor for the
Renderer.MacroNode
2012-02-20 19:27:37 +00:00
Jeremy Ruston
b1a96d8bf5 Refactored renderTiddler() to create macro node directly
This is so that we can get rid of the Renderer() wrapper class entirely
2012-02-20 18:04:50 +00:00
Jeremy Ruston
3bb0490bee Added defaultText parameter to getTiddlerText() 2012-02-19 17:19:12 +00:00
Jeremy Ruston
167613552f Fixes to enable <<tiddler>> macro to cope with missing tiddlers 2012-02-17 12:35:21 +00:00
Jeremy Ruston
0439f259b4 Switched over to using new Renderer class 2012-02-16 20:38:10 +00:00
Jeremy Ruston
8f4f8ae65f Add wrapper nodes around renderText() output 2012-02-11 18:18:50 +00:00
Jeremy Ruston
fb9ea4c202 Minor cleanup and comment improvements 2012-02-11 17:51:23 +00:00
Jeremy Ruston
7fdd8985ef Stopped caching renderer output
It means we're inadvertently caching the missing/resolved state of links
2012-02-10 11:12:08 +00:00
Jeremy Ruston
91caf57ef1 Removed obsolete WikiStore.adjustClassesForLink() method 2012-02-09 13:37:05 +00:00
Jeremy Ruston
95ab295fbb Refactored dependency handling
Now each class of dependency can be tracked individually
2012-02-07 19:03:59 +00:00
Jeremy Ruston
00774c1a48 Switched over to the new HTML class 2012-02-06 10:57:55 +00:00
Jeremy Ruston
2ff56c193c Fixed return value for macro events 2012-02-04 15:56:06 +00:00
Jeremy Ruston
58ab36ef51 Refactored navigation to use new macro event mechanism
Phew. This gets rid of a lot of hacks
2012-02-02 18:00:42 +00:00
Jeremy Ruston
f576c86b41 Refactored macro event handling
Updated the slider macro to use the new mechanism to start with
2012-02-02 17:48:09 +00:00
Jeremy Ruston
449f322a86 Refactoring navigation handling
Not done yet, but the tests are passing so it's a good point to check
in. The idea is to let macros register for events to handle both the
click and the navigation request.
2012-02-02 15:13:50 +00:00
Jeremy Ruston
6707034ae5 Corrected typo 2012-02-02 12:49:26 +00:00
Jeremy Ruston
b0336c527c Changed the signature of WikiStore.renderTiddler
The parameters are more sensible and predictable now
2012-02-01 16:12:49 +00:00
Jeremy Ruston
5b301dc30b Added rerender support to the story macro
Allowing the selective refresh of the story tiddlers
2012-02-01 12:37:29 +00:00
Jeremy Ruston
ddfa6732a6 Rename render function of macros 2012-01-30 20:04:47 +00:00
Jeremy Ruston
b0fc3d4668 Added ability to suppress the wrapper HTML nodes required by the refresh circuitry 2012-01-30 18:26:05 +00:00
Jeremy Ruston
f4d530a114 Removed erroneous blank line 2012-01-30 17:29:49 +00:00
Jeremy Ruston
205987d280 Improved the tiddler macro
Now you can transclude tiddlers as templates
2012-01-27 18:43:39 +00:00
Jeremy Ruston
d399a01f15 Added some judicious hasOwnProperty() checks 2012-01-27 16:49:29 +00:00
Jeremy Ruston
0d45d76af6 Finally, selective refreshing now works
Although it's a bit hard to see which DOM nodes have been refreshed.
2012-01-25 12:05:18 +00:00
Jeremy Ruston
dad7756f65 Getting selective refresh working
A bunch of changes, and we're halfway there
2012-01-25 10:51:04 +00:00
Jeremy Ruston
527b750714 Wrap macro invocations in an information element 2012-01-24 18:10:27 +00:00
Jeremy Ruston
398831b0d9 Major reorganisation of wikitext rendering
Getting ready to support selective refresh of DOM elements
2012-01-24 16:26:37 +00:00
Jeremy Ruston
ca3778f9fd Better error messages for eval'd code 2012-01-17 15:35:13 +00:00
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