Joker / jade

Jade.go - pug template engine for Go (golang)
BSD 3-Clause "New" or "Revised" License
354 stars 37 forks source link

Doesn't process inline jade tags #3

Closed nboughton closed 9 years ago

nboughton commented 9 years ago

I have a jade template that I want to process that uses the following code:

div.comic #[img(src='/gfx/comic/jeffandgary-3.png')]

Which, when parsed in Go using jade.Parse(), produces the following output:

<div class="comic">#[img(src='/gfx/comic/jeffandgary-3.png')]</div>

I get the same output with inline href tags as well:

p this is a test #[a(href="/testing/test.html") because tests are nice] and we like tests.

produces:

<p>this is a test #[a(href="/testing/test.html") because tests are nice] and we like tests.</p>

Should I just modify the template to put the img tag on a newline or are you planning to implement inline tags as per the Jade spec?