Templates
Last modified: 11 January 2023Required plugins:
JavaScript and TypeScript
- The plugin is bundled with PhpStorm and enabled by default.
Handlebars/Mustache
or EJS
- Install the plugin on the Settings | Plugins page, tab Marketplace.
On this page, configure processing of EJS inclusions, Handlebars expressions, and Mustache templates in PhpStorm.
Before you start
Make sure the JavaScript and TypeScript and EJS or Handlebars/Mustache required plugins are enabled on the Settings | Plugins page, tab Installed, see Managing plugins for details.
Handlebars/Mustache | In this area, configure processing of Handlebars expressions and Mustache templates in PhpStorm. The settings specified on this page apply to dedicated Handlebars and Mustache files that have the extension .hbs or .mustache respectively.
For more details about Handlebars expressions and Mustache templates see http://handlebarsjs.com/. The area is only available when the Handlebars/Mustache plugin is installed and enabled. The Handlebars/Mustache plugin is not bundled with PhpStorm, but it can be installed on the Settings | Plugins page, tab Marketplace, as described in Installing plugins from JetBrains repository. |
EJS | In this area, specify delimiters for inclusions of EJS in your code. Based on these delimiters, PhpStorm will recognize and process such inclusions correctly. A pair of delimiters is also referred to as execute tag.
|
Thanks for your feedback!