% for i in range(len(rubric_categories)): <% category = rubric_categories[i] %> % for j in range(len(category['options'])): <% option = category['options'][j] %> % endfor % endfor
${category['description']} % if category['has_score'] == True: (Your score: ${category['score']}) % endif
${option['text']} % if option.has_key('selected'): % if option['selected'] == True:
[${option['points']} points]
%else:
[${option['points']} points]
% endif % else:
[${option['points']} points]
%endif