baryshev / ect

Fastest JavaScript template engine with embedded CoffeeScript syntax
http://ectjs.com
MIT License
626 stars 70 forks source link

Blocks cant be redefined! #79

Open nfour opened 10 years ago

nfour commented 10 years ago
<% extend 'layout' %>

<div id="<%- @id %>">
    <h1><%- @upperHelper @title %></h1>
    <% include 'list' %>
</div>

<% block 'footer-info' : %>
    <div class="right">page: isStillThis</div>
<% end %>
<% block 'footer-info' : %>
    <div class="right">page: shouldBeThis</div>
<% end %>

This can be reproduced on the website by adding another footer-info block.

I would have expected the footer-info to be overwritten but it never is, as I've been trying to use this concept as a way to mimic #50.

The issues seem to keep piling up @baryshev, have you considered adding on more contributors? #50, #75 and this seem like nice and straightforward feature additions.