JakobOvrum/LuaD — pull request #57 by etcimon (2013-11-19 16:37:47+00:00)
Title: Dub Package Manager Compatibility

This version was created because I needed it in my project based on the widely-used dub package manager. Some updates had to be done to make it possible to compile with the newer DMD 2.064.2.

You can see a new folder structure that is often used in dub projects, where .d files go below the "source/" folder. I haven't added any of the examples, but I've managed to compile my Vibe.d program to show a webpage containing the lua data using the phonebook example such as this:

Contact[] phonebook = Contact.fromFile("contacts.lua");
res.render!("index.dt", req, phonebook);

This allows me to mix runtime with compile-time in Vibe.d, with a simple change in my package.json file:

"dependencies": {
"vibe-d":	{"version": "~master",	"path": "E:\\include\\vibe.d-master\\"},
"luad": {"version": "~master", "path": "E:\\include\\luad-master\\"}
},

you should add this repository to the dub package list here:

http://code.dlang.org/

Greetings, and thank you for your wrappers.