Detecting Vexi Templates

Avatar

Charles Goodwin

4 months ago

There are numerous projects now using Vexi. Vexi files are XML/JS. Currently ohcount detects them as Perl files.

It is easy to know if it is a Vexi file:

  • All Vexi templates end in .t
  • All are JS encapsulated in XML
  • Root tag is always <vexi></vexi>

The only vexi-ism that would be worth noting is that not all textual content is JS. Anything inside the tag <meta:doc></meta:doc> should be considered comments - including further XML tags.