HTML comments trip EJS rendering #271

Closed
daffl opened this Issue Feb 7, 2013 · 1 comment

Comments

Projects
None yet
4 participants
@daffl
Contributor

daffl commented Feb 7, 2013

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

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

</table>

It seems as if the comments are the problem here.

@scorphus

This comment has been minimized.

Show comment
Hide comment
@scorphus

scorphus Mar 6, 2013

Contributor

Commit a4de909 was a typo, I'm sorry.

Contributor

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