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

Menu