ructe icon indicating copy to clipboard operation
ructe copied to clipboard

static file cant start with a number

Open Aedius opened this issue 5 years ago • 1 comments

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.

Aedius avatar Jun 23 '20 21:06 Aedius

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.

kaj avatar Jul 05 '20 15:07 kaj