Mercurial Hosting > luan
comparison core/src/luan/modules/Html.luan @ 320:fed1893821bf
remove global namespace
git-svn-id: https://luan-java.googlecode.com/svn/trunk@321 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 06 Feb 2015 21:54:41 +0000 |
parents | 4fe6c9fed486 |
children | 7f7708e8fdd4 |
comparison
equal
deleted
inserted
replaced
319:f6db49c294a7 | 320:fed1893821bf |
---|---|
1 java() | 1 java |
2 import "java:luan.modules.HtmlLuan" | 2 import "java:luan.modules.HtmlLuan" |
3 | 3 |
4 encode = HtmlLuan.encode | 4 encode = HtmlLuan.encode |
5 parse = HtmlLuan.parse | 5 parse = HtmlLuan.parse |
6 _ENV.to_string = HtmlLuan.to_string | 6 to_string = HtmlLuan.to_string |
7 | 7 |
8 | 8 |
9 | 9 |
10 -- extras | 10 -- extras |
11 | |
12 import "luan:Luan" | |
13 | |
14 local ipairs = Luan.ipairs | |
15 local type = Luan.type | |
11 | 16 |
12 function process_url_tags(html) | 17 function process_url_tags(html) |
13 for i, v in ipairs(html) do | 18 for i, v in ipairs(html) do |
14 if type(v) == "table" and v.type == "tag" then | 19 if type(v) == "table" and v.type == "tag" then |
15 if v.name == "url" then | 20 if v.name == "url" then |