<%! import yaml from tools import md_to_html %> <% total_points = sum(q['points'] for q in t['questions']) %> % if t['debug']:
                    ${yaml.dump({k:v for k,v in t.items() if k!='questions'})}
                
% endif % for i,q in enumerate(t['questions']):
% if q['type'] == 'information':

${q['title']}

${md_to_html(q['text'], q['ref'], q['files'])}
% elif q['type'] == 'warning': % elif q['type'] == 'alert': % else:

${q['title']}

Classificar 
${md_to_html(q['text'], q['ref'], q['files'])}
% if q['type'] == 'radio': % elif q['type'] == 'checkbox': % elif q['type'] in ('text', 'text_regex', 'text_numeric'): % elif q['type'] == 'textarea':
% endif
% if t['show_hints']: % if 'hint' in q:

${md_to_html(q['hint'], q['ref'], q['files'])}
% endif # hint % endif # show_hints % if t['show_points']:

(Cotação: ${round(q['points'] / total_points * 20.0, 1)} pontos)

% endif

% if t['debug'] or t['show_ref']: % endif
% endif
% endfor