Thank you for the update. I will check this out later because I've worked 
around my problem for the moment.
Does that mean all existing scripts won't run on the new version?

On Saturday, 4 January 2014 13:24:01 UTC+11, Sergey Lyubka wrote:
>
> Ah, right, I forgot to include Lua support. Here's new exe with Lua 
> functionality: 
> https://code.google.com/p/mongoose/downloads/detail?name=mongoose.04.01.2013.exe&can=2&q=#makechanges
>
> In 5.0, Lua support has been changed. In 4.x, Lua scripts were like PHP,
> they were like HTML pages with embedded <? ?>  Lua blocks.
>
> In 5.0, Lua scripts are just like CGI files, they are simple Lua scripts
> and should have ".mg.lua" extension. Here's the example:
>
> https://github.com/cesanta/mongoose/blob/master/build/test/new.mg.lua<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fcesanta%2Fmongoose%2Fblob%2Fmaster%2Fbuild%2Ftest%2Fnew.mg.lua&sa=D&sntz=1&usg=AFQjCNHjkW6TAtGQa_kDsVOD0n60XLEFAQ>
>
> Lua support is a moving target at the moment, I haven't decided on a 
> strategic
> direction for the scripting engine. At the moment, I am considering two 
> options:
>   1.  Continue with Lua
>   2.  Use Javascript as a scripting engine
>
> Javascript as an engine sounds more appealing to me cause it has
> better syntax (this is arguable of course) and it is more widespread (this 
> is a fact).
> On a minus side, it has to be developed. I wouldn't do full ECMA compliant
> implementation, just basics to allow useful scripting: basic operations,
> file/socket IO and Sqlite interface would be enough to build a powerful 
> platform.
>
> So at this point, I am still considering pros and cons.
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"mongoose-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mongoose-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to