TiddlyWiki / TiddlyWiki5

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

[IDEA] Better Rules for Dynamic Stylesheets #8387

Open kookma opened 4 months ago

kookma commented 4 months 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 4 months 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 4 months ago

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

Would be great!