<% if(d.smartNames.length > 0) { %> <% d.eachPaged(d.smartNames, function(smartName){ %> <% if(smartName.firstPart) { %><%-smartName.firstPart%><% } %><% if(smartName.highLightPart) { %><%-smartName.highLightPart%><% } %><% if(smartName.lastPart) { %><%-smartName.lastPart%><% } %> <% }); %> <% } else { %> <%-d.getErrorMsg()%> <% } %>