[% USE url('/') %] [% hangman = application.hangman %] [% game = hangman.game %]

# Hangman

[% IF hangman.message %]

## [% hangman.message %]

Score: [% hangman.finalscore || game.get_score || 0 %]

Have another go! [% ELSE %]

## Word: [% game.in_progress %]

Chances: [% game.get_chances %]
Score: [% game.get_score %]

## Your guess?

[% FOREACH letter = ['A'..'Z'] %] [% IF hangman.guessed.$letter %] [% letter %] [% ELSE %] [% letter %] [% END %] [% END %] [% END %]