My current project involves creating a user guide. The guide needs to be dynamic such that a different version is built into a book depending on who is downloading it/what params are passed to it. The data which is hidden in certain instances must also be private (shouldn't be possible for a reader to see the hidden data by editing the src files).
My first guess is to make all the pages into html and use some javascript to decide what gets shown and what doesn't (have some small script which passes some params to the js so it can decide what to hide). However, I'm fairly sure this method would not be private, i.e. the html could be edited or just read to see what was hidden.
What would be the software recommendations for a project such as this? Am I roughly write with a web style tech stack or are there alternatives? What would good modules to use and abuse be for this?