[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Using Lua for config files
- From: Pierre-Yves Gérardy <pygy79@...>
- Date: Thu, 19 Dec 2013 10:13:53 +0100
On Thu, Dec 19, 2013 at 3:20 AM, Rena <hyperhacker@gmail.com> wrote:
> On Wed, Dec 18, 2013 at 9:16 PM, Pierre-Yves Gérardy <pygy79@gmail.com>
> wrote:
>>
>> Guys, I believe you missed my other post... unless you need more than
>> JSON-like documents, that's what you're looking for.
>
> Sorry, I did see your post, and it does look like it'd work (though it's a
> lot of code!) My only gripe is it forces the file to be a table, which
> eliminates the possibility of using conditionals.
You can put an "IF" function in the environment. Another useful helper
would be (a safe wrapper around?) os.gentenv.
-- Pierre-Yves