Displaying a static image in a XBlock Template

How can I display images stored in the static forlder in a xblock template?
Thanks in advance

Hi @Javier_Arranz, welcome to the community!

You can find an existing example in our Problem Builder XBlock. It works this way:

  1. Use the local_resource_url method of the XBlock Runtime API to retrieve resource’s address (example).
  2. Pass the URL via context to the template in student_view (example).
  3. Use the variable inside the XBlock’s template (example).

Thanks. I when I do this the img is composed ok but it is not shown. The link appears to be broken

img src="/xblock/resource/clfclient/static/icons/back-016.png"