> -----Original Message-----
> From: steve donovan [mailto:steve.j.dono...@gmail.com]
> Sent: donderdag 25 april 2013 7:35
> To: luarocks-developers@lists.sourceforge.net
> Subject: Re: [Luarocks-developers] including resource files
> 
> On Wed, Apr 24, 2013 at 10:38 PM, Thijs Schreijer wrote:
> > What is the proper way to include these resources?
> 
> It would be useful if the builtin mode did not assume that non-Lua files
> are part of a compiled library; if we had instead a whitelist (like
> '.c',etc) then non-C, non-Lua files could be copied as is.

Dunno, how about adding an extra section in the rockspec next to the "modules" 
list called "resources"? That would then cover any type of resource that needs 
to be copied into the Lua module filetree.


> The workaround I had for templates was to write them as Lua:
> 
> --- template.upnp.lua
> return [[
> .....
> ]]

Ok, thx. I fixed it in a similar way.

> 
> and then require() knows how to find them properly.
> But if arbitrary files could be put in the tree, then package.searchpath
> could find them and they could be loaded appropriately.


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to