Skip to content

Added dev mode and extension filter for RustEmbed#596

Merged
sunng87 merged 1 commit into
sunng87:masterfrom
qxuken:master
Aug 4, 2023
Merged

Added dev mode and extension filter for RustEmbed#596
sunng87 merged 1 commit into
sunng87:masterfrom
qxuken:master

Conversation

@qxuken

@qxuken qxuken commented Aug 2, 2023

Copy link
Copy Markdown
Contributor

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

sunng87 commented Aug 4, 2023

Copy link
Copy Markdown
Owner

Awesome! This looks fantastic!

@coveralls

Copy link
Copy Markdown

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