TiddlyWiki / TiddlyWiki5

A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.
https://tiddlywiki.com/
Other
7.97k stars 1.18k forks source link

[IDEA] Better Rules for Dynamic Stylesheets #8387

Open kookma opened 1 month ago

kookma commented 1 month ago

Look at the https://tiddlywiki.com/#Pragma%3A%20%5Crules

with TW 5.3.5 and many new features like functions/procedures/shortcut conditionals, the rules for dynamic stylesheet should be improved.

Maybe

\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline conditional fnprocdef
Jermolene commented 1 month ago

Hi @kookma that's a good point.

Perhaps it would make sense to devise some kind of mechanism for the core to support named sets of rules. For example, \rules only $stylesheet or \rules only $template. Then we would be able to update the rulesets without having to update the stylesheets or templates that reference them.

kookma commented 1 month ago

Perhaps it would make sense to devise some kind of mechanism for the core to support named sets of rules.

Would be great!