Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Torch Ember TemplatesNew to Visual Studio Code? Get it now.
Torch Ember Templates

Torch Ember Templates

Enigmatikk

|
227 installs
| (0) | Free
Syntax highlighting and IntelliSense for Torch Ember templates (.ember files)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🔥 Torch Ember VS Code Extension

Syntax highlighting, IntelliSense, and snippets for Torch Web Framework Ember templates.

Torch Logo

✨ 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

  1. From VS Code Marketplace:

    • Open VS Code
    • Go to Extensions (Ctrl+Shift+X)
    • Search for "Torch Ember"
    • Click Install
  2. From Command Line:

    code --install-extension enigmatikk.torch-ember
    

Usage

  1. Create a new file with .ember extension
  2. 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

Comments

  • {{-- 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.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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!
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft