Update code format in templates.

Copy javascript brace style. Easier to just have one approach.