<% pageModules.forEach(({id: pageId, pageNameVar, lowCodes}) => { %>
<% lowCodes.filter(mod => mod.type === 'handler-fn' && mod.name !== '____index____').forEach(mod => {%>
  import <%= pageNameVar%>_<%= mod.name%> from '../lowcode/<%= pageId%>/handler/<%= mod.name%>'
<% }) %>
<% }) %>



<% pageModules.forEach(({id: pageId, lowCodes, pageNameVar}) => { %>
// <%= pageId %>
export const <%=pageNameVar %> = {
  <% lowCodes.filter(mod => mod.type === 'handler-fn' && mod.name !== '____index____').forEach(mod => {%>
    ['<%= mod.name%>']: <%= pageNameVar%>_<%= mod.name%>,
  <% }) %>
}
<% }) %>
