Add "open" class to another template

What do you mean by this?

Go templates have nothing to do with JavaScript which runs in the browser.