Fix template bug that occurs when variable is used at the end of a repetition
Merge pull request #127 from johnboiles/johnb_template_bug

Fix template bug that occurs when variable is used at the end of a repetition