render HTML file in blocks of Theme App Extension

render HTML file in blocks of Theme App Extension

-Malek
Shopify Partner
6 0 6

I have a static website (HTML file)

I want to render it (include) inside a Liquid block of the Theme app extension

I used  {% render index.html %} and put my index.html in the root folder of the Theme app extension
But it did not work, it shows an error without any clue

 

Ps:

I tried copying the code of the HTML file inside the Liquid file but I faced many problems like: SVG causes error, img tag should have width and height, and even more problems I could not find a solution for it


If you know a way to render or inject a static site inside the theme app extension please let me know

Thank you in advance

 

Here is picture of my code

Capture d’écran 2022-12-15 234439.png

 

Replies 0 (0)