Skip to content

How to handle dynamic attributes? #106

Answered by jcbbb
jcbbb asked this question in Q&A
Discussion options

You must be logged in to vote

Oh never mind, I found the answer.

In case anyone comes across this, I did the following:

<div>
  <% it.users.forEach((user) => { %>
  <h1><%= user.name %> <%= user.age%></h1>
  <input type="checkbox" <%= user.verified ? "checked" : "" %> /> <% }) 
  %>
</div>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jcbbb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant