Is it possible to style the page returned through routes?

Quick question, was curious if it's possible to have a page that I can style through css? If possible, or can I load an html page?
Solution:
you can send HTML code yes, if you set the proper mime type. But your frontend library/framework will not render it unless you use a variant of dangerously set inner html to avoid potential script injection.
Jump to solution
4 Replies
static
staticOP7mo ago
I know in express I'd use .send however, can't find it in sapphire
Solution
Favna
Favna7mo ago
you can send HTML code yes, if you set the proper mime type. But your frontend library/framework will not render it unless you use a variant of dangerously set inner html to avoid potential script injection.
Favna
Favna7mo ago
and because you can send HTML code you can include a <style> </style> block in there hint: look at the method called by .json and such (ctrl click is your friend)
static
staticOP7mo ago
Oh cool, alright I'll do that. Thank you for being so patinet with me. I appreciate you, your amazing
Want results from more Discord servers?
Add your server