mde / ejs

Embedded JavaScript templates -- http://ejs.co
Apache License 2.0
7.71k stars 846 forks source link

Variable gets pushed out of tag? #652

Closed 7heMech closed 2 years ago

7heMech commented 2 years ago

Why does this: this Compile to this: CaptureResult

Code in Image:

<table class="table table-sm table-bordered">
   <tbody>
      <tr>
         test
      </tr>
   </tbody>
</table>
mde commented 2 years ago

First of all, test is not a variable. It's not inside any EJS delimiters. Secondly, the reason it likely renders outside your table is because you are missing <td> tags.