Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/10sr/mmm-jinja2

MMM submode class for Jinja2 Templates
https://github.com/10sr/mmm-jinja2

Last synced: about 2 months ago
JSON representation

MMM submode class for Jinja2 Templates

Awesome Lists containing this project

README

        

mmm-jinja2 for Emacs
====================

[![License GPL 3][badge-license]][copying]

Add [Jinja2][] tag support into other major modes with [mmm-mode][] in [GNU Emacs][] 24.

This mode has only been tested in GNU Emacs 24. It may **not** work with GNU Emacs 23 and below,
or with other flavors of Emacs (e.g. XEmacs).

Installation
------------

**Manual**

You'll need the following packages:

* python-mode
* [mmm-mode][]

In your .emacs, load the .el:

```el
(load "~/mmm-jinja2.el")
```

Then specify the extensions to use with mmm-jinja2 mode:

```el
(add-to-list 'auto-mode-alist '("\\.jinja2\\'" . html-mode))
(mmm-add-mode-ext-class 'html-mode "\\.jinja2\\'" 'jinja2)
```

**Automatic**

From [MELPA][] or [MELPA Stable][] with M-x package-install RET
mmm-jinja2
.

Usage
-----

Available MMM Mode Insertion Commands:

| Key | Inserts |
|-----------|:----------------:|
| `C-c % {` | `mako-{{-}}` |
| `C-c % #` | `mako-comment` |
| `C-c % %` | `mako-{%-%}` |

(Use `C-c % h` to show this help message when in mmm-jinja2 mode)

Support
-------

Feel free to ask question or make suggestions in the [issue tracker][].

Contribute
----------

- [Issue tracker][]
- [Github][]

License
-------

Salt Mode is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

Salt Mode is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.

See [`COPYING`][copying] for the complete license.

[badge-license]: https://img.shields.io/badge/license-GPL_3-green.svg
[COPYING]: https://github.com/beardedprojamz/salt-mode/blob/master/COPYING
[GNU Emacs]: https://www.gnu.org/software/emacs/
[MELPA]: http://melpa.milkbox.net/
[MELPA Stable]: http://melpa-stable.milkbox.net/
[Issue tracker]: https://github.com/beardedprojamz/salt-mode/issues
[Github]: https://github.com/beardedprojamz/mmm-jinja2
[Jinja2]: http://jinja.pocoo.org/
[mmm-mode]: https://github.com/purcell/mmm-mode