🔥 Torch Ember VS Code Extension
Syntax highlighting, IntelliSense, and snippets for Torch Web Framework Ember templates.

✨ Features
- Syntax Highlighting - Beautiful syntax highlighting for
.ember
template files
- IntelliSense - Auto-completion for Ember directives and variables
- Snippets - Quick snippets for common Ember patterns
- Error Detection - Real-time syntax error detection
- Bracket Matching - Smart bracket matching for Ember directives
- Code Folding - Fold Ember blocks for better code organization
🚀 Quick Start
Installation
From VS Code Marketplace:
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X
)
- Search for "Torch Ember"
- Click Install
From Command Line:
code --install-extension enigmatikk.torch-ember
Usage
- Create a new file with
.ember
extension
- Start typing Ember directives and enjoy syntax highlighting!
@extends('layout')
@section('content')
<h1>{{ $title }}</h1>
@if($user.isActive)
<div class="welcome">
<p>Welcome back, {{ $user.name }}!</p>
<p>Last login: {{ $user.lastLogin | date }}</p>
</div>
@else
<div class="login-prompt">
<p>Please log in to continue.</p>
</div>
@endif
@foreach($posts as $post)
<article class="post">
<h2>{{ $post.title }}</h2>
<p>{{ $post.excerpt }}</p>
<a href="/posts/{{ $post.id }}">Read more</a>
</article>
@endforeach
@endsection
📝 Ember Syntax Support
Directives
@extends('template')
- Template inheritance
@section('name')
/ @endsection
- Content sections
@if
/ @elseif
/ @else
/ @endif
- Conditionals
@foreach
/ @endforeach
- Loops
@include('partial')
- Include partials
@yield('section')
- Yield content
Variables
{{ $variable }}
- Output variables
{{ $object.property }}
- Object properties
{{ $array[index] }}
- Array access
{{ $value | filter }}
- Filters/pipes
{{-- Comment --}}
- Ember comments
<!-- HTML Comment -->
- HTML comments
🎨 Snippets
Type these prefixes and press Tab
:
Prefix |
Description |
Output |
ext |
Extends template |
@extends('$1') |
sec |
Section block |
@section('$1')\n\t$2\n@endsection |
if |
If statement |
@if($1)\n\t$2\n@endif |
foreach |
Foreach loop |
@foreach($1 as $2)\n\t$3\n@endforeach |
inc |
Include partial |
@include('$1') |
yield |
Yield section |
@yield('$1') |
var |
Variable output |
{{ $$1 }} |
🔧 Configuration
You can customize the extension behavior in VS Code settings:
{
"ember.suggest.basic": true,
"ember.validate.enable": true,
"ember.format.enable": true
}
🔥 About Torch Web Framework
Torch is a fast, secure, and scalable web framework for Rust, inspired by Laravel and Sinatra. It features:
- Fast Performance - Built on Tokio and Hyper for maximum speed
- Type Safety - Compile-time guarantees with Rust's type system
- Ember Templates - Powerful templating engine similar to Laravel Blade
- Extractors - Type-safe request data extraction
- Middleware - Composable request/response processing
- Production Ready - Built-in security, monitoring, and caching
Learn more: github.com/Enigmatikk/torch
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
)
- Commit your changes (
git commit -m 'Add amazing feature'
)
- Push to the branch (
git push origin feature/amazing-feature
)
- Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Inspired by Laravel Blade syntax highlighting
- Built for the Torch Web Framework community
- Thanks to all contributors and users!