Created
October 15, 2020 12:46
-
-
Save RolandWarburton/4b79d55d427315ebeac2cc4a435b4498 to your computer and use it in GitHub Desktop.
EJS for each json keys
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% Object.entries(record).forEach(([key, val]) => { %> | |
<li class="<%= key %>" id="<%= val %>"><strong><%= key %></strong>: <%= val %></li> | |
<% }); %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment