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:Jump to 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.
4 Replies
I know in express I'd use
.send
however, can't find it in sapphireSolution
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.
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)Oh cool, alright I'll do that. Thank you for being so patinet with me. I appreciate you, your amazing