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

Keep track of package the bootstrap theme is from #701

Merged
merged 1 commit into from
Oct 15, 2023

Conversation

BryceStevenWilley
Copy link
Contributor

This lets us have a features: bootstrap theme: block in another package, that we can then include in the current interview. Previously, DA would try to look for a locally referenced bootstrap theme in the current package, i.e. "custom_bootstrap.css" wouldn't work, and you would have to put "docassemble.other_package:custom_bootstrap.css".

Implemented with hasattr, since there are a few places that bootstrap_theme could come from, and checking for it's existence seemed simpler than adding an extra variable that also tracked where bootstrap_theme was set from.

Tested locally and it works as expected.

This lets us have a `features: bootstrap theme:` block in another package,
that we can then include in the current interview. Would previously try to
look for a locally referenced bootstrap theme in the current package,
i.e. "custom_bootstrap.css" wouldn't work, and you would have to put
"docassemble.other_package:custom_bootstrap.css".
@jhpyle jhpyle merged commit b410e81 into jhpyle:master Oct 15, 2023
3 checks passed
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.

2 participants