1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-24 06:13:17 +00:00
TiddlyWiki5/core
Robin Munn 758089cbb3
Alternate fix for inconsistent list template syntax (#7827)
* Alternate fix for inconsistent list template syntax

First attempt, which fails on the ListWidget/WithMissingTemplate test.

* Make WithMissingTemplate test pass, inefficiently

Unfortunately, this ends up being very inefficient, because the
clone-and-mutate logic is repeated for every list item. Not ideal.

* More efficient way to do it

This also makes the failing test pass, but far more efficiently.

* Improve performance of list template discovery

Since parse tree nodes never change after widget creation (whereas
attribute values *can* change), we can safely search for the explicit
list templtaes only once, at widget creation time. This saves time as
the search doesn't have to be done on each re-render, and also allows us
to safely do a clone-and-mutate step to extract the list widget's body
(if any) without any `$list-empty` or other items. That, in turn, allows
using the list widget's body as the template even if `$list-empty` is
specified inside the widget body.
2023-11-06 21:18:31 +00:00
..
images Fix whitespace within new journal button image 2023-07-17 09:33:38 +01:00
language Improve file type names (TID, SVG, ICO) in hints (#7764) 2023-10-03 21:37:49 +01:00
modules Alternate fix for inconsistent list template syntax (#7827) 2023-11-06 21:18:31 +00:00
palettes Add tm-http-request message for making HTTP requests (#7422) 2023-06-13 10:35:55 +01:00
templates Revert "Bidirectional text improvements (#4541)" 2023-06-21 17:13:33 +01:00
ui Don't set focus on field-name input field when deleting field using delete-field button (#7806) 2023-10-25 13:29:40 +01:00
wiki Tweak TOC to not show expander for sublist with all children excluded (#7802) 2023-10-25 13:37:24 +01:00
acknowledgements.tid Update Jasmine website (#7533) 2023-06-11 10:36:02 +01:00
copyright.tid It's 2023 2023-01-02 15:47:24 +00:00
icon.tid Parameterise core icons (#7413) 2023-05-06 12:08:46 +01:00
plugin.info Minor tweaks to plugin library listings 2020-04-06 10:15:18 +01:00
readme.tid Add/update plugin readmes 2014-08-07 15:49:52 +01:00
sjcl-license.tid Move SJCL license file into core plugin 2017-04-23 09:53:18 +01:00

title: $:/core/readme

This plugin contains TiddlyWiki's core components, comprising:

* JavaScript code modules
* Icons
* Templates needed to create TiddlyWiki's user interface
* British English (''en-GB'') translations of the localisable strings used by the core