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

Suggestion: Add Folder example to Assets Guide #403

Open
TheGrinchOnMath opened this issue Jan 30, 2025 · 0 comments
Open

Suggestion: Add Folder example to Assets Guide #403

TheGrinchOnMath opened this issue Jan 30, 2025 · 0 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers

Comments

@TheGrinchOnMath
Copy link

The Dioxus Guide Page for Assets includes explanations and codes snippets for importing images, arbitrary files and StyleSheets.
I suppose this was written with the thought that projects using many images would serve them from back-end (this usually being more user-friendly.)

However, as someone relatively new to Rust and Dioxus with limited resources, setting up a backend is not viable for me. Since the (web) app I am building uses 100s of images, doing 100s of asset!(...) calls is ugly, bloat, etc...

Since (after asking) I found out it is easy to import a folder 1st party, I thought it was strange for that part not to be featured in the docs, especially since it is very useful when organizing files, especially for people not used to the rustacean way yet.

Suggestion:

Add a Folder section to the Assets guide, giving a brief explanation of how it works and how to properly implement it in code, as well as a snippet illustrating an example use case.

@ealmloff ealmloff added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 31, 2025
@ealmloff ealmloff added the good first issue Good for newcomers label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants