RejectedSoftware Forums

Sign up

Inline nested tags?

Is there some way to write inline nested tags in diet templates? Jade provides the following kind of syntax for this.

li: a(href="foobar")

This would just be a nice little bit of sugar. I thought of it when I was writing a lot of links in lists, which look like this.

ul
    li
        a
    li
        a

They could look like this.

ul
    li: a
    li: a

Re: Inline nested tags?

On Sun, 01 Jun 2014 21:45:08 GMT, w0rp wrote:

Is there some way to write inline nested tags in diet templates? Jade provides the following kind of syntax for this.

li: a(href="foobar")

This would just be a nice little bit of sugar. I thought of it when I was writing a lot of links in lists, which look like this.

ul
    li
        a
    li
        a

They could look like this.

ul
    li: a
    li: a

Not currently, but there is a long standing open enhancement request: #33