jeremy@jermolene.com
1841b0fa4f
Fix tests
2022-10-01 14:05:13 +01:00
jeremy@jermolene.com
47f80339b2
Update transclude widget to use error widget
...
Missed off #6970
2022-10-01 10:15:14 +01:00
jeremy@jermolene.com
753bf8fe62
Revert "Revert "Transclude widget: refresh selectively when needed ( #5736 )""
...
This reverts commit 4f9dd50382
.
2021-06-02 21:45:06 +01:00
jeremy@jermolene.com
4f9dd50382
Revert "Transclude widget: refresh selectively when needed ( #5736 )"
...
This reverts commit 2e695801b1
.
2021-06-02 19:14:05 +01:00
Saq Imtiaz
2e695801b1
Transclude widget: refresh selectively when needed ( #5736 )
...
* Transclude widget: only refresh when transcluded text reference has changed, includes tests
* Refactor wiki.parseTextReference so it is re-usable for getting the parser info
* Re-arrange methods in wiki.js to improve diff readability
2021-06-02 13:58:30 +01:00
Joe Bordes
82ec63e711
style(App) eliminate whitespace at the end of code lines ( #5735 )
2021-05-30 19:20:17 +01:00
jeremy@jermolene.com
28521d82f3
Revert "Extend transclude widget to optionally set variables"
...
Actually a partial reversion, because we're keeping the minor refactoring of makeChildWidget() in widget.js
This reverts commit 80ee5adb14
.
2021-04-02 09:47:38 +01:00
jeremy@jermolene.com
7f202f35b4
Minor refactoring for clarity
...
See 9af68297cd (r48540814)
2021-03-22 09:50:54 +00:00
jeremy@jermolene.com
9af68297cd
Fix transclusion refreshing
...
Missed off 80ee5adb14
2021-03-19 16:14:15 +00:00
jeremy@jermolene.com
80ee5adb14
Extend transclude widget to optionally set variables
...
Partially fixes #5199
2021-03-19 15:37:59 +00:00
saqimtiaz
5aa4e4cb68
Initial support for switching page templates ( #4979 )
...
* Add support for switching page templates
* Revert "Add support for switching page templates"
This reverts commit dbf7682d47
.
* Adopt Jeremy's approach to page template switching instead
* Fix default value of recursion marker
* Fixed issue with conditional check
2020-11-07 09:51:01 +00:00
Myeongjin
6388f859d1
Add localisable strings for error ( #2447 )
...
* Add localisable strings for error
* Update tiddler Transclusion Basic Usage in fr-FR
2016-05-17 21:58:47 +01:00
Myeongjin
8afc1e9354
Add localisable strings ( #2438 )
...
* Add localisable string for recursive transclusion error
* Add localisable string for count
* Add localisable strings for syncer
2016-05-12 08:44:28 -06:00
Jermolene
61af1f9379
Add error formatting for transclusion recursion errors
2014-09-24 11:50:38 +02:00
Jermolene
7953b95d13
Include subtiddler in transclusion recursion detection
2014-08-07 15:43:48 +01:00
Jermolene
f793816dfa
Add subtiddler support to the transclude widget
...
Useful to be able to reach into plugins. It will enable us to do things
like extract readmes from themes that are not active.
2014-07-17 18:41:20 +01:00
Jermolene
7998686cb3
Fix typo affecting transclusion recursion detection
2014-07-14 14:50:46 +01:00
Jermolene
4743d0a863
Fix transclusion recursion detection
...
We were inadvertantly doing the recursion check before we were checking
if the transclusion target exists.
2014-07-12 09:08:52 +01:00
Jermolene
247eb04b11
Extraneous semi-colon
2014-05-31 19:18:01 +01:00
Jermolene
06500e5f71
New error message text for recursive transclusion error
2014-03-17 11:54:41 +00:00
Jermolene
ca0c352278
Extend the transclude widget to fallback to displaying it's child nodes if the target isn't defined
2014-02-12 21:38:37 +00:00
Jermolene
ecad2bf7a8
Add better control over whether tiddlers are transcluded in block or inline mode
2014-02-12 17:59:28 +00:00
Jeremy Ruston
cc0011abd3
Get rid of the "new_" prefix we had on some methods
...
There's still the "old_" prefix to get rid of too.
2013-11-08 08:51:14 +00:00
Jeremy Ruston
b7cb1d3391
Change new_widget
to widget
...
I was avoiding doing this until after the merge.
2013-11-08 08:47:00 +00:00
Jeremy Ruston
3e3a5917b7
Move the widgets back to the right folder
2013-11-08 08:38:44 +00:00
Jeremy Ruston
20f03de712
The big purge of the old widget mechanism
...
Getting rid of the old widget mechanism files finally gives us a payoff
for all the refactoring. Still a bit of tidying up to do, and we need
to re-introduce the animation mechanisms.
2013-10-27 22:55:36 +00:00
Jeremy Ruston
be06257430
Split "transclude" widget into a separate "tiddler" and "transclude" widget
...
Belatedly realised that the design would be clearer without these two
separate concepts being conflated into a single widget.
As a result of this change, any other widget or template that generates
transclude widgets has needed adjustment.
2013-08-24 16:45:45 +01:00
Jeremy Ruston
f4b4415676
Fix problem which was preventing transcluded indexed properties from being parsed inline
2013-08-16 13:11:44 +01:00
Jeremy Ruston
6fc4e5db7c
Get rid of the old "fieldgrid" and "fieldlist" widgets
...
Instead, we'll use the "list" widget with the new support for macros.
2013-08-15 18:17:11 +01:00
Jeremy Ruston
e4aa80b277
Update the transclude widget to update parameters for remove tag message
2013-06-09 19:27:15 +01:00
Jeremy Ruston
ab75dde048
Update transclude widget to flag events with the current field
2013-06-04 12:02:18 +01:00
Jeremy Ruston
d5b0a0fb68
Extend the transclude widget to allow a currentField to be set
...
We set the current field as a context variable for the transcluded
content
2013-06-02 23:19:50 +01:00
Jeremy Ruston
8564602256
Refactor rendertree to simplify context handling
...
Get rid of the separate renderContext stack and instead have a parent
pointer on renderer nodes. This lets us walk back up the render tree to
resolve context references
2013-05-15 17:32:17 +01:00
Jeremy Ruston
dc00e584fb
Add support for filtering shadow tiddlers
2013-04-03 14:29:12 +01:00
Jeremy Ruston
30d0dec1fa
Replacement styles
...
Smaller simpler styles (including CSS reset from
https://github.com/necolas/normalize.css/ )
2013-02-03 23:02:23 +00:00
Jeremy Ruston
e024440ca8
Fixed transclude widget to only refresh when the template changes
...
Not when the tiddler being viewed changes; any such changes will be
picked up by embedded view widgets.
2013-01-17 11:29:21 +00:00
Jeremy Ruston
baff901685
Added ability to transclude fields of data tiddlers
...
This allows us to transclude colours into CSS
2013-01-15 17:50:47 +00:00
Jeremy Ruston
95c9b7b114
Fixed bug with refreshing transclude widget
2013-01-03 20:54:34 +00:00
Jeremy Ruston
6d24cedbcc
Refactored widget renderers to be hosted within HTML element renderers
...
This arrangement takes better advantage of the similarities between the
now deleted widget renderer and the element renderer. It also obviates
the need for wrapper elements around every widget.
2013-01-03 16:27:55 +00:00
Jeremy Ruston
d96e0073ac
Refactored widgets not to use a base class
2013-01-01 17:51:02 +00:00
Jeremy Ruston
b006cf163f
Remove the old parser code
...
Thus introducing a few functional regressions, but it's going to be
easier to fix things up without the old code knocking around and
getting in the way.
2012-12-28 22:08:32 +00:00
Jeremy Ruston
fa17eb1b96
Fixed support for custom attributes, classes and tooltips on transclusions
2012-12-20 17:19:28 +00:00
Jeremy Ruston
055bdd8d8f
Added inline transclusion as well as block transclusion
2012-12-20 15:07:38 +00:00
Jeremy Ruston
7593cf1075
Cleaning up the widget refresh mechanism
2012-12-14 19:31:37 +00:00
Jeremy Ruston
5c1caa672b
Moved render() and renderInDom() into widget base class
2012-12-14 17:51:14 +00:00
Jeremy Ruston
3e06bca347
Refactor widget implementation
2012-12-14 16:01:37 +00:00
Jeremy Ruston
d338a54370
Introduce refactored wiki parser and renderer
...
This is a half-way through a big refactoring of the parsing and
rendering infrastructure. The main change is to separate the parse and
render trees, which makes the code a lot cleaner. The new parser isn't
yet functional enough to replace the existing parser so for the moment
you have to manually invoke it with `$tw.testNewParser()` in your
browser console. I really ought to use branches for this kind of
thing...
2012-12-13 21:34:31 +00:00