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

https://github.com/tamino-martinius/vscode-language-spacebars


https://github.com/tamino-martinius/vscode-language-spacebars

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# language-spacebars package

Adds syntax highlighting and snippets to Spacebars files in VS Code.
Can also be used for Handlebars.

## Feedback

Feel free to submit issues or pull requests with suggestions for more.

### Generic Snippets

#### if: `if`

```hbs
{{#if condition}}

{{/if}}
```

#### if - else: `ife`

```hbs
{{#if condition}}

{{else}}

{{/if}}
```

#### unless: `un`

```hbs
{{#unless condition}}

{{/unless}}
```

#### unless - else: `une`

```hbs
{{#unless condition}}

{{else}}

{{/unless}}
```

#### with: `wt`

```hbs
{{#with item}}

{{/with}}
```

#### with - else: `wte`

```hbs
{{#with item}}

{{else}}

{{/with}}
```

#### each: `ea`

```hbs
{{#each items}}

{{/each}}
```

#### each - else: `eae`

```hbs
{{#each items}}

{{else}}

{{/each}}
```

#### let: `let`

```hbs
{{#let variables}}

{{/let}}
```

#### partial: `pa`

```hbs
{{> template }}
```