Imagine a service that already has a full ecommerce catalog and purchasing etc back office with a RESTFUL API that developers can use to connect to remotely to create ecommerce websites from it. I have already built this. What I was hoping for is some advice in implementing a RESTFUL EJS service on top of this that would allow for a developer to specify an EJS template file via http resource URL and a typical catalog query in the same call such as:
http://mywebsite.ecommerceapi.com/catalogid/products?query=sunglasses&ejs=httpurl
The resulting service would then return the rendered EJS template (using caching etc for the query and EJS template). This would be primarily for SEO purposes and allowing the developers to create the same solution client-side in terms of templating as they do in server-side so it eases development in simplifying how client-side and server-side templates are done regardless of the technology used to setup the websites.
Your suggestions? I also have no problem with you saying "this is a bad idea" but please give reasons.