Hello all, I'm attempting to allow different template output for different groups of pages. As such, I'd like to be able to define a variable orso per page (source file) that defines the 'group' that is a part of. Then I'd like to be able to access that variable in the template, to allow for conditional output in the template.
I considered using the 'sourcename' variable in the template, but that means I have to add each page of the group to the template. Instead, I want the template to know about the groups, but not about the pages in the groups, to allow reuse of the templates for other documentation. I have considered substitution variables, but I couldn't figure out how to access them in templates. I also considered a custom directive/role, but I have no experience with them. Is there a standard/simple way to do this? Any help is greatly appreciated. -- You received this message because you are subscribed to the Google Groups "sphinx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sphinx-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
