A rendered anything is just a string (of HTML). It is easy to have a function that returns a string. And, it is easy to get that string. It comes from a call to a Moodle renderer method which returns a string.
General developer forum
creating a web-service that prints a rendered compnent
This discussion has been locked so you can no longer reply to it.