Conditionalize TOC in HTML5?
I'm creating an HTML5 help system for software that communicates with multiple products. I'd like to reuse topics as much as possible. Each topic is 80% the same with only slightly different text/screen shots. Is there as way to have a single topic listed multiple times in a TOC and control the content in each instance separately?
For example:
TOC
Product A
Topic A (only showing content for product A)
Topic B (only showing content for product A)
Product B
Topic A (only showing content for product B)
Topic B (only showing content for product B)
These are the solutions I've thought might be possible:
- Conditional text allows me to restrict the content shown in the output, but will not allow me to restrict the content based on where it is in the TOC.
- Snippets would allow me to reuse the content in multiple topics, but would be much too complex. I'd end up with multiple snippets for every single topic with multiple screen shots interspersed.
- Merged help system would allow me to conditionalize each output, but I am hoping there is another way.
- Create separate topics for each product?
Is there a simpler way to do this?
