In this case I'd just use the HTML hidden attribute rather than class="hidden".  Templates should always be hidden; it is not a matter of styling.  That's a very minor point, though.