User Tools

Site Tools


lua:structure

**This is an old revision of the document!** ----

A PCRE internal error occured. This might be caused by a faulty plugin

How to structure your Trisul Lua apps A typical LUA app may contain several *.lua files some of them contain Trisul API and some others are supporting helpers. Check out the trisulnsm/apps repository to see how we have structured our apps. ====== Use a helpers subdirectory ====== Put all your helpers in a subdirectory called helpers and then add that to the package path in your main script <code lua> -- package.path = package.path .. ';helpers/?.lua' local IPPrefixDB=require'ipprefixdb' </code>

lua/structure.1530867154.txt.gz · Last modified: 2018/07/06 08:52 by veera