Matthew Eernisse

Results 134 comments of Matthew Eernisse

I have done something somewhat similar back when I was still working on generators for the Geddy MVC framework. We had EJS code that generated EJS templates, so we used...

Please feel free to submit a PR with updates to the README, or a PR for the doc site. It's at https://github.com/mde/ejs-site.

Could you add a test for this?

Yes, Jake is currently a hard dependency of the new CLI. The desire for a separate CLI package is noted. I'll definitely consider it.

I'd be happy to consider a PR that implements this. It was just the fastest solution I had.

I think this is a reasonable approach. It doesn't bloat the lib, and is opt-in. We would want to make sure it doesn't break the line count in our error...

PR merged, thanks!

A simpler solution might be just a check to ensure that `views` is an array, something like `views = [].concat(views)`. I'd happily merge a PR that adds that check.

Happy to do so. In the interim, feel free to send me an e-mail at the address publicly listed on my GH profile: [email protected].

Your best bet would be to write a function that inserts a placeholder element, and then asynchronously replace that element once the data for your rendered template becomes available after...