Fix attribute rendering in conditionals. Closes #23.