add version inside of module

This commit is contained in:
leaf corcoran
2013-10-26 10:21:00 -07:00
parent 00f5f1f7c7
commit 47ca09218f
2 changed files with 5 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
local VERSION = "1.0.1"
local insert, concat
do
local _obj_0 = table
@@ -307,5 +308,6 @@ end
return {
compile = compile,
render = render,
Parser = Parser
Parser = Parser,
_version = VERSION
}

View File

@@ -1,3 +1,4 @@
VERSION = "1.0.1"
import insert, concat from table
@@ -229,5 +230,5 @@ render = (str, env) ->
else
nil, err
{ :compile, :render, :Parser }
{ :compile, :render, :Parser, _version: VERSION }