HTML comments trip EJS rendering #271

daffl opened this Issue Feb 7, 2013 · 1 comment


None yet
4 participants

daffl commented Feb 7, 2013

As shown in this Fiddle from this Stackoverflow question with a simple EJS script like this:

<table border="1">
<!-- bind to changes in the todo list -->
<% this.each(function( todo ) { %> 
    <!-- add the todo to the element's data -->
    <tr <%= (el) ->'todo',todo) %>>
            <input type="checkbox" <%= todo.attr('complete') ? 'checked' : '' %>>
        <td><%= todo.attr('name') %></td>
        <td><%= todo.attr('id') %></td>
<% }) %>


It seems as if the comments are the problem here.


This comment has been minimized.

Show comment
Hide comment

scorphus Mar 6, 2013


Commit a4de909 was a typo, I'm sorry.


scorphus commented Mar 6, 2013

Commit a4de909 was a typo, I'm sorry.

@daffl daffl closed this in 5172329 Mar 7, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment