How does the template engine work with require.js?

  1. such as doT.js , how can I use it with require.js ? And webpack ? Introduced directly in html ?
  2. Must the module defined by require.js have a return , for example, I just do alert (2) in main.js require (["math"]) , is it necessary to wrap it with a function and then return out?


you can put the content in, process it and send it out

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9d634-47732.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9d634-47732.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?