문제

I am building a multipage app with Meteor and I am trying to access public assets from a routed page.

For example, when I navigate to this route http://localhost:3000/editor, I want to be able to use an image from this source: public/img/thing.png like so:

<img src='img/thing.png'> 

But it doesn't work since I am at a different URL.

Is there any handlebar helper which I need to insert in there to get my root URL?

도움이 되었습니까?

해결책

No handlebars, just regular HTML:

<img src='/img/thing.png'>
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top