yosssi / ace

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

Allow custom attributes #70

Open peacememories opened 8 years ago

peacememories commented 8 years ago

Currently it does not seem to be possible to define attributes Ace doesn't understand. e.g.

dl.someclass itemscope itemtype="http://schema.org/Organization"

Jade solves this by enclosing attributes in parens ( dl.someclass(itemscope itemscope, etc...) ). Doing this in ace results in an error because it tries to set a class containing quotes.

Right now I am working around this by using go templates for the specific partial, but this seems to be a big blocker.