Mercurial Hosting > luan
comparison scripts/test.luan @ 505:7bc63886d4f2
web page modules now return a function
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 May 2015 01:45:49 -0600 |
parents | 92c3d22745b8 |
children | 342964519194 |
comparison
equal
deleted
inserted
replaced
504:dbdf4b8193a8 | 505:7bc63886d4f2 |
---|---|
67 ab_testing.to_doc(doc) | 67 ab_testing.to_doc(doc) |
68 db.save_document(doc) | 68 db.save_document(doc) |
69 end | 69 end |
70 | 70 |
71 init() | 71 init() |
72 ab_testing.web_page{"All","null"}.respond() | 72 ab_testing.web_page{"All","null"}() |
73 | 73 |
74 local Web_search = require "luan:lucene/Web_search" | 74 local Web_search = require "luan:lucene/Web_search" |
75 local web_search = Web_search.of(db) | 75 local web_search = Web_search.of(db) |
76 | 76 |
77 init() | 77 init() |
78 web_search.respond() | 78 web_search() |
79 | 79 |
80 init() | 80 init() |
81 Http.request.parameter.query = "Query.all_docs" | 81 Http.request.parameter.query = "Query.all_docs" |
82 Http.request.parameter.rows = "100" | 82 Http.request.parameter.rows = "100" |
83 Http.request.parameter.sort = "" | 83 Http.request.parameter.sort = "" |
84 web_search.respond() | 84 web_search() |
85 | 85 |
86 | 86 |
87 -- website | 87 -- website |
88 | 88 |
89 function Io.schemes.site(path,add_extension) | 89 function Io.schemes.site(path,add_extension) |