The EJS or Mustache code is parsed and compiled into a JavaScript file. The generated JavaScript will return HTML.
To see an example of this generated code, goto TodoMVC (CanJS). Then in your developer tool of choice, look for the JS file named views_todos_mustache.js.