Skip to content
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

Add resolve arg to thematic_get_theme() and thematic_get_option() #28

Closed
wants to merge 1 commit into from

Conversation

cpsievert
Copy link
Collaborator

Closes #22 and #27

Copy link
Collaborator

@schloerke schloerke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My gut reaction is that resolve auto theme should be split into two functions. Resolve auto theme and resolve global auto theme.

Resolve auto theme should take a theme argument (which can default to global theme) and rerun the updated theme argument without setting the global value.

This would allow for users to call get theme with resolve true then resolve false and get two different answers.

The resolve global auto theme can be a wrapper around resolve auto theme that sets the global theme to the resolved global theme.

@cpsievert
Copy link
Collaborator Author

Good idea! That's connected to #25, so I'll close here and incorporate other there

@cpsievert cpsievert closed this Jun 4, 2020
@cpsievert cpsievert deleted the get-resolve branch June 8, 2020 22:16
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

Successfully merging this pull request may close these issues.

thematic_get() and friends should maybe resolve auto values
2 participants