Quantcast
Channel: User Schwern - Stack Overflow
Viewing all articles
Browse latest Browse all 581

Can I set up template inheritance inside a template? (Template Toolkit)

$
0
0

I have to display different medical forms according to which state the user is in. There is also a default form that many of the states share. These medical forms are all written in Template Toolkit and they are included in larger templates. The state is available as a variable in a normalized form.

I need to select the state-specific template, if it exists, otherwise fall back to the default. How would I best go about doing this?

INCLUDE_PATH is already being used to control switching between site styles.


Viewing all articles
Browse latest Browse all 581

Trending Articles