Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML comments trip EJS rendering #271

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

HTML comments trip EJS rendering #271

daffl opened this issue Feb 7, 2013 · 1 comment
Assignees
Labels
Milestone

Comments

@daffl
Copy link
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
Copy link
Contributor

scorphus commented Mar 6, 2013

Commit a4de909 was a typo, I'm sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants