mde / ejs

Embedded JavaScript templates -- http://ejs.co
Apache License 2.0
7.71k stars 846 forks source link

Extracting EJS tags from a template to create mock/randomized data #638

Open techquestions opened 2 years ago

techquestions commented 2 years ago

I would like to extract all the tags from an EJS template in order to create structure of objects used in the given template and later fill the template with some mock/randomized data.

Are there any exported functions I could use or private functions that could be exported in order to be able to do what I am planning to do?