A Browserify middleware that pre-compiles Jade templates on the server and uses the light-weight Jade runtime made for the browser to render them on the client.
21
stars
6
forks
source link
bug: duplicated content for two elements because of the same class #12
if pin.blog
.blog
section
a(href='/blog/#{pin.blog.blogId}')
h1= pin.blog.title
.body!= pin.blog.excerpt
if (pin.bodyHTML)
.body!= pin.bodyHTML
both of the .body elements get the same content which is pin.bodyHTML + pin.blog.excerpt. This is an error. If I change one of the element's class name, to say, .blog-body, then each element has different content as it should.
What's going on here? Is this browserijade's fault/error?
both of the .body elements get the same content which is
pin.bodyHTML + pin.blog.excerpt
. This is an error. If I change one of the element's class name, to say, .blog-body, then each element has different content as it should.What's going on here? Is this browserijade's fault/error?