ructe
ructe copied to clipboard
static file cant start with a number
In the function add_static, the variable rust_name start with the name of the file, so it breaks.
It's not a big deal, but i thing it's worth mentioning.
True. It could be fixed by adding a constant string before the name (so foo.jpg still becomes foo_jpg but 17.jpg becomes static_17_jpg). Or it could just be a line in the documentation stating that static files names starting with numbers is not allowed.