Merge pull request #40 from samuele3hu/Conver

Modify the lua binding template functions