Pedro Rolo
Pedro Rolo

Reputation: 29940

Clojure noir: Unable to use images in resources/img

I've been starting trying out noir, though I am now having an annoying problem:

I have a background image stored at project-folder/resources/public/img/bg.png. And my css file references it as '/img/bg.png'.

Though, the browser seems unable to load this image.

Does anyone have any idea of what might be going wrong?

Upvotes: 0

Views: 121

Answers (2)

Michiel Borkent
Michiel Borkent

Reputation: 34800

In case anyone else has this problem: another common cause is not having the resources folder on the classpath.

Upvotes: 1

Pedro Rolo
Pedro Rolo

Reputation: 29940

The img file was corrupted. I was already able to load it on the browser.

Upvotes: 0

Related Questions