80行Lua代码实现一个满足基本要求的模版引擎
80行Lua代码实现一个满足基本要求的模版引擎,以下内容仅供学习交流,未经严格考虑与测试,切勿用于生产环境。ltemplate.lualocal insert = table.insertlocal remove = table.removelocal concat = table.concatlocal format = string.formatlocal loaded = {}local partten = "(.-){#([^#].-[^#])#}...