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

Added dev mode and extension filter for RustEmbed #596

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

qxuken
Copy link
Contributor

@qxuken qxuken commented Aug 2, 2023

Hi!

Thanks for the library!
I have a problem while working with RustEmbed struct. I want a live reload, but now it is implemented only for file register, so i used workaround by iterating struct and register using filenames from it, but i would like to have it implemented by handlebars-rust

This PR adds dev mode for RustEmbed, which if built not in release mode, reads from the file system on each call.
Also added method which names templates and filters files like register_templates_directory does.

@sunng87
Copy link
Owner

sunng87 commented Aug 4, 2023

Awesome! This looks fantastic!

@coveralls
Copy link

Coverage Status

coverage: 81.002% (+0.02%) from 80.986% when pulling 6e0e10b on qxuken:master into 165cebe on sunng87:master.

@sunng87 sunng87 merged commit 4bd5753 into sunng87:master Aug 4, 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

Successfully merging this pull request may close these issues.

3 participants