I'm using express and ejs to render my files. In a addition I render a <%= data.groupID %> which is 60113 like this:
<div>
<%= data.groupID %>
</div>
<div>
<% include docs/profile_60113 %>
</div>
How can I use the variable in the <% include docs/profile_GROUPID %> expression?!
<div>
<script>
var getGroupID;
function functiongroupID() {
getGroupID = '<%= data.groupID %>';
}
functiongroupID();
console.log(getGroupID);
</script>
</div>
<div>
<%= data.groupID %>
</div>
<div>
<% include docs/profile_GROUPID %>
</div>
Is that even possible or do I need to do an if?!