19 lines
465 B
Plaintext
19 lines
465 B
Plaintext
<%
|
|
function layoutDiv() {
|
|
var el = '';
|
|
if (item.content == undefined || item.content.length == 0) {
|
|
return el;
|
|
}
|
|
el += '<div class="widget-wrap" id="markdown">';
|
|
el += '<div class="widget-header cap dis-select">';
|
|
el += '<span class="name">' + item.title + '</span>';
|
|
el += '</div>';
|
|
el += '<div class="widget-body fs14">';
|
|
el += markdown(item.content);
|
|
el += '</div>';
|
|
el += '</div>';
|
|
return el;
|
|
}
|
|
%>
|
|
<%- layoutDiv() %>
|