Editing EJS templates (express.js, underscore.js, can.js)

What IDE do you use for editing EJS templates, which are standard language templates, for example, for can.js, express.js, underscore.js

I'm waiting for EJS support in the JetBrains WebStorm IDE (BTW who are interested can vote http://youtrack.jetbrains.com/issue/WI-6800 )

I wonder if there are other IDE files that support syntax?

+4
source share
3 answers

as a workaround, you can get Jetbrains to link .ejs files to html using the settings menu.

File-> Settings-> File Types-> Recognized File Types {Find HTML and add * .ejs to the section for registered templates}

+2
source

it is not integrated, but online, but there Architect http://rowno.imtqy.com/architect/

+1
source

Plugin already exists:

https://youtrack.jetbrains.com/issue/WEB-679#comment=27-1516987

Martin Movald July 14, 2016, 3:30 I solved the problem with templates Underscore.js, marked by errors, and not having the correct syntax, highlighting the following method: Fixed plugin EJS ( https://plugins.jetbrains.com/plugin/7296? pr = ) Configured settings → Editor → File types → EJS → Added registered file template: * .tmpl (yours may be different, I think) Tada! Good syntax highlighting without errors :)

Note. I am using Underscore.js (lodash) templates in Backbone.js environment. Templates are always separate * .tmpl files

+1
source

Source: https://habr.com/ru/post/1436299/


All Articles