Mercurial Hosting > luan
diff examples/blog/src/lib/Db_mod.luan @ 1088:bae2d0c2576c
change module naming convention
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 26 Dec 2016 22:29:36 -0700 |
parents | c38f6619feb9 |
children |
line wrap: on
line diff
--- a/examples/blog/src/lib/Db_mod.luan Mon Dec 19 01:38:21 2016 -0700 +++ b/examples/blog/src/lib/Db_mod.luan Mon Dec 26 22:29:36 2016 -0700 @@ -2,12 +2,12 @@ local Io = require "luan:Io.luan" -local M = {} +local Db_mod = {} -M.lucene_dir = "site:/private/local/lucene" +Db_mod.lucene_dir = "site:/private/local/lucene" -function M.new_db() - local dir = Io.uri(M.lucene_dir).to_string() +function Db_mod.new_db() + local dir = Io.uri(Db_mod.lucene_dir).to_string() local db = Lucene.index( dir, Lucene.type.english, {"subject","content"} ) -- this is how you index a field @@ -16,4 +16,4 @@ return db end -return M +return Db_mod