$ luarocks install daviluaxmlDavi System Lua XML (DSLX) is a library that allows you to use XML syntax inside Lua code.
XML tags are transformed into Lua function calls, similar to JSX in JavaScript.
Changes in 2.0-1:
- Breaking: module renamed from DaviLuaXML to dslx, complete rewrite of the library
- Parser rewritten on top of LPeg (new lpeg dependency)
- Runtime with extensible handler system, register custom node types with runtime:addHandler
- Import API: require() .dslx files directly, with install/uninstall/loadfile/reload/clear
- Compiler can write the generated Lua to a file (tofile, output_dir, output_name) and resolves relative paths
- Main module exports the full API and installs the require searcher automatically