I'm wondering if something like this is possible:
You have an EJS template and the data that needs to be filled in -> they are passed to the template -> an image is generated of the element and saved.
Is there a way to do this all on the backend? I tried googling, but couldn't find any good resource or anything to get me started. I don't need you to write the code for me, just some general resources or packages to use :)
Note: It doesn't need to be an EJS file, any templating language will do as long as it supports CSS and there is a way to take a screenshot of the element.
CodePudding user response:
Just for people who seek the answer to the question I figured out a solution:
You can use Handlebars templating language to create templates and the use the package node-html-to-images and configure it to use handlebars and you'll get exactly what was described in the question.
