Skip to content

[IDEA] Allow the use of variables in the rules pragma #7186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Telumire opened this issue Jan 6, 2023 · 2 comments
Closed

[IDEA] Allow the use of variables in the rules pragma #7186

Telumire opened this issue Jan 6, 2023 · 2 comments

Comments

@Telumire
Copy link
Contributor

Telumire commented Jan 6, 2023

For example:

\define rule-safe-css() only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock

then this could be used like this:

\rules <<rule-safe-css>>

The core could provide a few rules variable, which would be more readable / user friendly

@Jermolene
Copy link
Member

Hi @Telumire sadly this wouldn't be possible. The problem is that the rules pragma needs to be fully interpreted at the time that the tiddler is parsed but at parse time we don't have access to variables.

I think the underlying issue might be addressed in a different way by #345.

@Telumire
Copy link
Contributor Author

Telumire commented Jan 6, 2023

Yes this would work too ! I'll close this since it's kind of a duplicate of #345

@Telumire Telumire closed this as completed Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants