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 it is a part of. Then I'd like 
to be able to access that variable in the HTML/Jinja template, to allow for 
conditional output in the template.

I considered using the 'sourcename' variable in the template, but that 
would result in having to add each individual page name to the template. 
I'd like the template to be aware of the groups, but not of the individual 
pages. This keeps the template generic, and allows it to be used for 
multiple documentation sets.

I also considered substitution variables, but I couldn't figure out how to 
access them in templates.

I further considered the use of a custom directive/role, but I have no 
experience with them, and don't know if this would make it possible.

My question is: is there a standard/easy way to do this?

Any help is greatly appreciated.

Dennis

-- 
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.


Reply via email to