I am slowly developing a very simple set of shiny apps. I have been putting the same text into all my apps which gives people some context, in each app, about the whole set and how the shiny relates to other things I'm doing. I have been putting that in the sidebar but I'd rather put it at the bottom of my mainPanel. What I really want to be able to do is to pull the text from a single file so that I can update it regularly and not have to change every app. So far you can see my failed attempt to achieve this at: https://shiny.psyctc.org/apps/RCI1/. You will see the current boilerplate text in the sidebar and you can see my abortive attempt to recreate it using a text file in the root of the shiny server. That is being pulled into the mainPanel as you can see but it is (of course) in the highlight colour as I have used renderPrint() to create it and you can see that the HTML is not being parsed as HTML (as I'm using renderPrint()!). The code of the app is in apps/RCI1 at GitHub - cpsyctc/shiny-server: My git/github repository for my shiny server (I think it's public so can be pulled).
I think one way to do this is through templates (https://shiny.posit.co/r/articles/build/templates/) but that seems to be talking about templates created in the app directory while I want to use a template ideally in the root of the server. I see that it is possible in principle to put a template into a package and I do have a package (https://cecpfuns.psyctc.org/) so I guess I could try to go that way but I can't help thinking that someone else will have already solved this challenge and can show me how to do this more simply! TIA, Chris