In which of the following template engines can you write plain JavaScript code inside special tags?

  • Mustache
  • Handlebars
  • Pug
  • EJS (Embedded JavaScript)
EJS (Embedded JavaScript) allows you to write plain JavaScript code inside special tags <% %> or <%= %>. This feature is useful for executing JavaScript logic and generating dynamic content within templates. Mustache, Handlebars, and Pug have their own template syntax and do not support this feature in the same way.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *