Can ejs be written independently by node?
Node usesejsIt cannot be used on the browser side, but there is a browser side ejs. the above mentioned is not an item. its official website ishttp://www.embeddedjs.com/, providing the same syntax as nodejs, and the same name.
However, this front-end ejs has not been updated for a long time and has no automatic escape function. So I recommend another template library with the same syntax as ejsartTemplateHe has two modes, of which the native mode is the same as ejs. His disadvantage is that he cannot call the function on the window, but he can bind it through the helper method he provides. In addition, there is anotherbaidutemplateAnd ejs syntax is the same, but not used.