Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aayushchugh/ejs-language-snippets-and-color-highlighting-vscode

VS Code extension for ejs tempting engine for node js
https://github.com/aayushchugh/ejs-language-snippets-and-color-highlighting-vscode

ejs intellisense snippets vscode

Last synced: 17 days ago
JSON representation

VS Code extension for ejs tempting engine for node js

Awesome Lists containing this project

README

        

# EJS Snippets And Color Highlighting

### NOTICE: If you are not seeing any style, set your file associations for "\*.ejs" to html

Add snippets for Ejs and some colors for better visualization

Please rate this and provide feedback It helps me know what I need to improve.

If there is anything that I missed or features you would like this to include. [Let me know](https://github.com/Ayush-Chugh-2006/ejs-language-snippets-and-color-highlighting-vscode/issues)

## Features

**_If snippets do not show up, add the following to your settings file_**

```json
"emmet.includeLanguages": {
"ejs": "html",
},
```

**Snippets are found below.**

| Snippet | Output |
| ----------- | -------------------------------------------- |
| `ejs` | `<% %>` - No output tag |
| `ejsout` | `<%= %>` - Outputs HTML value |
| `ejsesc` | `<%- %>` - Outputs unescaped |
| `ejscom` | `<%# %>` - Comment tag |
| `ejslit` | `<%% %>` - Outputs Literal <% |
| `ejsinc` | `include` statement |
| `ejsfor` | `for` Javascript Loop |
| `ejseach` | `forEach` Javascript Loop |
| `ejsforof` | `forOf` Javascript Loop |
| `ejsforin` | `forIn` Javascript Loop |
| `ejsif` | `if` Statement with condition |
| `ejsifelse` | `if else` Statement with condition |
| `ejster` | `tertiary operator` Statement with condition |

#

![Video](./assets/recording.gif)

## EJS docs

If you need documention on how to use EJS:

[EJS Github](https://github.com/mde/ejs)
[EJS Website](https://ejs.co/)

## For contribution just do what you want to do and create a pull request