Code Monkey home page Code Monkey logo

vscode-latte-lang's Introduction

Nette Latte extension for VS Code ☕

VS Code extension for Nette Latte template files.

VS Code Marketplace Downloads VS Code Marketplace Installs

Installation

Open and install via VS Code Marketplace: Nette Latte templates.

Provides

  • Syntax highlight in Latte files.
  • Class-based declaration of template variables via Latte tag {templateType My\Lovely\Type}.
  • Go to variable definition for variables defined in Latte files.
  • Go to class definition of typed variables in Latte files.
    • obrazek
  • Go to method definition of methods called on typed variables in Latte files.
  • Go to referenced Latte files used in {include ...}, {layout ...}, {sandbox ...}, {extends ...} tags.
  • Hover information containing type of variables in Latte files.
  • Hover information containing return type of method calls in Latte files.
    • obrazek
  • Type inference of values coming from known method calls with known return types.
    • obrazek
  • Type resolution of basic iterables.
    • For example for {foreach $a as $b} where $a is of type array<MyType> we will know $b is of type MyType.
    • obrazek
  • Autocomplete support for $variables and $object->methodName() in Latte files.
    • obrazek

Types

The excentions supports resolving generic types for these basic iterable types:

  • array<V>
  • iterable<V>
  • \Iterator<V>
  • \IteratorAggregate<V>
  • \Traversable<V>
  • \Generator<V>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.