Be1zebub / LuaHTML

pre-processor for mixed html code with lua.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Depreated

it was a bad idea, i got a new one: https://github.com/Be1zebub/lua-template (recommened to use it)

LuaHTML

pre-processor for mixed html code with lua.
it works like <?php ... ?> but codeblocks looks like: <lua>...</lua>

Exapmple:

Luahtml:

<h1><lua> print('Test') </lua></h1>

PHP:

<h1><?php echo("Test") ?></h1>

Usage:

local result_html = EvalLuaHTML("<h1><lua> print('Test') </lua></h1>")
local result_html = EvalLuaHTMLFile("var/www/site.com/pages/index.lua.html")

Here is binding for Luvit http:
https://github.com/Be1zebub/LuvitWeb

About

pre-processor for mixed html code with lua.

License:MIT License


Languages

Language:Lua 100.0%