mozilla / nunjucks

A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)
https://mozilla.github.io/nunjucks/
BSD 2-Clause "Simplified" License
8.56k stars 638 forks source link

Nunjucks version number #950

Open valtido opened 7 years ago

valtido commented 7 years ago

I need to find out which version of nunjucks I am using at the moment, in jQuery we are allowed to do the following.

jQuery().jquery; /// 3.1.1

is there or at least a plan to do the same in nunjucks to expose it's version number ?

ogonkov commented 4 years ago

You can query nunjucks package

require('nunjucks/package.json').version;
fdintino commented 4 years ago

I can see the utility in having it accessible client-side. I'll look into adding it.