Added elif snippet to htmldjango.