Avoid code duplication by restructuring loops slightly
Avoid code duplication by restructuring loops slightly

nitish116/pystache,android-ia/platform_external_pystache,rismalrv/pystache,arlenesr28/pystache,dmfrancisco/django-pystache,nitish116/pystache,beni55/pystache,android-ia/platform_external_pystache,jrnold/pystache,rismalrv/pystache,charbeljc/pystache,arlenesr28/pystache,alex/pystache,harsh00008/pystache,jrnold/pystache,beni55/pystache,defunkt/pystache,arlenesr28/pystache,rismalrv/pystache,harsh00008/pystache,harsh00008/pystache,clach04/pystache_old_v0.4.1,nitish116/pystache,charbeljc/pystache