yosssi / ace

HTML template engine for Go
MIT License
836 stars 89 forks source link

How to set "selected" in select tag? #84

Open Paxa opened 4 years ago

Paxa commented 4 years ago

I would like to do something like this:

select name="a"
  option value="alice" selected={{.IsAlice}} Alice
  option value="bob" selected={{.IsBob}} Bob

Is it possible?