50l3r
50l3r15mo ago

Use case: render html script

Good afternoon, I need to create a script that collects some parameters and based on them the script will render an html. The problem is that I don't know where I could host this html so that the script can take it and parse it with ejs. Until now I was using an appwrite function to do the whole process but due to technical limitations I have to use another alternative. Can anyone shed some light for me?
4 Replies
50l3r
50l3r15mo ago
A quick solution would be to put all the html in a variable but I don't think it's a good option.
Tiago Serafim
Tiago Serafim15mo ago
Can you describe a little bit more your use case? Wouldn't be possible to render the HTML in one step of a flow, and use it as input in the next step?
aurelienbrabant
aurelienbrabant15mo ago
Had to do this for homemade mailing templates. What I basically did is create a collection in appwrite that holds my templates' data among which lies the html content. I then fetch the template I want to use and pass the html field to a windmill script that renders it using ejs.
rubenf
rubenf15mo ago
Would it be possible to use a typescript html rendering lib ? Jsx is essentially that btw