Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #% Example template.
- #%
- #% t = mtemplate_compile('mtemplate_usecase1.mt');
- #% t(3)
- # function usecase1(rows)
- <html>
- <body>
- # for i = 1:rows
- <tr><td>GEN_DATA = <%=gendata%></td></tr>
- <%=genline(i)%>
- # end
- </body>
- </html>
- # function gendata
- <%= i %>
- # end
- #end
- # function genline(row)
- <tr>
- #for e = 1:10
- <td> <%= e %> </td>
- #end
- </tr>
- # end
Add Comment
Please, Sign In to add comment