daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest May 17th, 2018 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #% Example template.
  2. #%
  3. #% t = mtemplate_compile('mtemplate_usecase1.mt');
  4. #% t(3)
  5.  
  6. # function usecase1(rows)
  7.     <html>
  8.         <body>
  9.     # for i = 1:rows
  10.         <tr><td>GEN_DATA = <%=gendata%></td></tr>
  11.         <%=genline(i)%>
  12.     # end
  13.         </body>
  14.     </html>
  15.     # function gendata
  16.         <%= i %>
  17.     # end
  18. #end
  19.  
  20. # function genline(row)
  21.     <tr>
  22.     #for e = 1:10
  23.         <td> <%= e %> </td>
  24.     #end
  25.     </tr>
  26. # end
RAW Paste Data
Top