-
Hi, It looks like a great plugin ! Sorry if I misunderstand something, but I can't find how to use this in a raw HTML or a Twig template. Is this something possible ? Best. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi Romain! The plugin relies on JS imports to detect the From your comment, I get that you are trying to use it from PHP? If that's the case, the plugin is not designed for that use case, although it does have a programmatic API that you could adapt to your purposes by using a Vite plugin. Moving this to discussions, feel free to ask additional questions, or provide an example of how you would use it. |
Beta Was this translation helpful? Give feedback.
Hi Romain!
The plugin relies on JS imports to detect the
preset
query parameter and generate images accordingly.From your comment, I get that you are trying to use it from PHP? If that's the case, the plugin is not designed for that use case, although it does have a programmatic API that you could adapt to your purposes by using a Vite plugin.
Moving this to discussions, feel free to ask additional questions, or provide an example of how you would use it.