fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.64k stars 260 forks source link

Support Nimja template engine #1234

Closed volodymyrprokopyuk closed 2 years ago

volodymyrprokopyuk commented 2 years ago

Hi,

I'm using the Nimja Nim template engine with the jinja2 web-mode-engine configured for the .nwt (Nim web template) file extension as follows

(add-to-list 'auto-mode-alist '("\\.nwt\\'" . web-mode))
(setq web-mode-engines-alist '(("jinja2" . "\\.nwt\\'")))

This setup works quite fine. Thank you!

Could you consider adding the nimja web-mode-engine for the .nwt file extension?

Below follows the list of issues when using jinja2 with Nimja

Thank you very much, Vlad

fxbois commented 2 years ago

please post on gist a full example that would use all syntax elements of this template engine please

volodymyrprokopyuk commented 2 years ago

Unfortunately currently I'm quite busy and do not have time to elaborate the full example of the template language. I can point out the documentation of the language at https://github.com/enthus1ast/nimja if this helps. Thank you!