I have a module which contains a “file” field type. This field type has the field name of “svg_file”
In the file manager, I have a file called “homepage-graphic.html”. This HTML file contains the code for an SVG graphic.
The reason I have not uploaded a .svg file to the file manager is because I would then need to wrap that in an <img> tag, whereas I want the raw SVG code to be printed in my module.
When I run {{ module.svg_file }}, it prints:
https://XXXXXXX.fs1.hubspotusercontent-na1.net/hubfs/XXXXXXX/website/homepage-graphic.html
In HubL, how can I get it to print the contents of the above file, rather than reference its file URL? How can I get it to print the SVG code inside of that file?