I'm currently in the process of making a plugin for my October website. However, I've got a couple of questions.
The plan for my plugin is when people visit /mycustomroute/id, it will process that ID and make a HTTP request to fill the page with content from that HTTP call. I'm currently using routes to do this as explained here and pull the information.
How do I go about integrating the results into my custom theme? In other words, I'd like this page to look like the rest of static pages that I've added on the website. I presume it's something to do with rendering a view as the response but I need it to also use a custom layout that I've made.
Any help and advise on best practises for this kind of thing would be greatly appreciated.