tmt-mode

Homepage: https://github.com/yoshiki/tmt-mode

Author: Yoshiki Kurihara

Updated:

Summary

Major mode for editing Text::MicroTemplate syntax

Commentary

This is a major mode for editing files written in Text::MicroTemplate syntax.

Installation:
 
To install, just drop this file into a directory in your
`load-path' and (optionally) byte-compile it. To automatically
handle files ending in `.mt', add something like:

(autoload 'tmt-mode "tmt-mode"
         "Major mode for editing Text::MicroTemplate syntax")
(add-to-list 'auto-mode-alist '("\\.mt$" . tmt-mode))

to your .emacs file.

To use syntax of Mojo::Template '<% ... %>',
set `tmt-default-tag-char' to `tmt-mode-hook'

(add-hook 'tmt-mode-hook
         '(lambda () (setq tmt-default-tag-char "%")))

Dependencies