Language-swig

This is the atom package for the language swig.

View project on GitHub

language-swig package

This is a package for the swig which is a simple, powerful, and extendable Node.js and Browser-based JavaScript Template Engine.

Features of swig

  • Available for node.js and major web browsers!
  • Uses similar methodologies as Django, Jinja2, and Twig template engines.
  • Express compatible.
  • Object-Oriented template inheritance.
  • Apply filters and transformations to output in your templates.
  • Automatically escapes all output for safe HTML rendering.
  • Lots of iteration and conditionals supported.
  • Robust without the bloat.
  • Extendable and customizable.
  • Great code coverage.

Language Definition

Swig assumes it is a subset of the HTML language definition. All HTML-based commands and preferences are extended via the Swig bundle.

This bundle adds support for tag-folding, Swig comments, and smart typing pairs.

Tags

All tags support tab-completion

blockā‡„ 
{% block ${1:blockname} %}
     $0
{% endblock %}