Mercurial Hosting > luan
comparison blog/src/lib/test.luan @ 693:ca169567ce07
module URIs must now include ".luan"
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 19 Apr 2016 15:54:11 -0600 |
parents | 35dde32c02ab |
children |
comparison
equal
deleted
inserted
replaced
692:7bd97d642f37 | 693:ca169567ce07 |
---|---|
1 local Luan = require "luan:Luan" | 1 local Luan = require "luan:Luan.luan" |
2 local error = Luan.error | 2 local error = Luan.error |
3 local to_string = Luan.to_string or error() | 3 local to_string = Luan.to_string or error() |
4 local Http = require "luan:http/Http" | 4 local Http = require "luan:http/Http.luan" |
5 local Http_test = require "luan:http/Http_test" | 5 local Http_test = require "luan:http/Http_test.luan" |
6 local init = Http_test.init or error() | 6 local init = Http_test.init or error() |
7 local get_page = Http_test.get_page or error() | 7 local get_page = Http_test.get_page or error() |
8 local Io = require "luan:Io" | 8 local Io = require "luan:Io.luan" |
9 local print = Io.print or error() | 9 local print = Io.print or error() |
10 local String = require "luan:String" | 10 local String = require "luan:String.luan" |
11 local matches = String.matches or error() | 11 local matches = String.matches or error() |
12 | 12 |
13 Http.uncache_site() | 13 Http.uncache_site() |
14 | 14 |
15 local Db_mod = require "site:/lib/Db_mod" | 15 local Db_mod = require "site:/lib/Db_mod.luan" |
16 | 16 |
17 Db_mod.lucene_dir = "site:/private/local/lucene_test" | 17 Db_mod.lucene_dir = "site:/private/local/lucene_test" |
18 local Db = require "site:/lib/Db" | 18 local Db = require "site:/lib/Db.luan" |
19 Db.delete_all() | 19 Db.delete_all() |
20 | 20 |
21 local Post = require "site:/lib/Post" | 21 local Post = require "site:/lib/Post.luan" |
22 local page | 22 local page |
23 | 23 |
24 print 'go' | 24 print 'go' |
25 | 25 |
26 init() | 26 init() |