yosssi / ace

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

Making list items links #56

Open briemarie opened 9 years ago

briemarie commented 9 years ago

I am trying to make a list of links. When I do: a href={{.Permalink}} {{.Title}} I get the links appearing correctly. But when I add: li a href={{.Permalink}} {{.Title}} I get, as a single example:

I've tried putting the a tag on the next line, with the same result, only on another line. I've also tried putting = after li, but that gives me an error (expected space, attr name, or end of tag). I tried experimenting, and instead of an li, I tried making the links an h1, but I get the same long string with tags in it. It seems that I can not nest elements?

briemarie commented 9 years ago

I ended up solving this issue by changing tabs to spaces. It was apparently causing the issue by messing with the indentation between my ul and li tags, and also when I tried to put the a tag on the next line.