Avatar

Correct answer by
Community Advisor

Hi,

 

Use an @include directive for the file:

<%@ include file='file:///tmp/abcMeta.html' %>

 

If your url's are in a loop or similar, unroll it so the parser can see, with the protocol outside the js:

<% var urls = [['aol.com', 'AOL']]; %>
<% if (urls[0]) %><a href="https://<%= urls[0][0] %>"><%= urls[0][1] %></a>
<% if (urls[1]) %><a href="https://<%= urls[1][0] %>"><%= urls[1][1] %></a>

 

Thanks,

-Jon

View solution in original post