Mercurial Hosting > luan
comparison src/luan/lib/HtmlLib.java @ 135:3119326260ea
revert rev 125 and only preload Java
git-svn-id: https://luan-java.googlecode.com/svn/trunk@136 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 11 Jun 2014 06:30:46 +0000 |
parents | f537ff5e511d |
children | 05f8c21160ef |
comparison
equal
deleted
inserted
replaced
134:b585d0915621 | 135:3119326260ea |
---|---|
7 import luan.LuanException; | 7 import luan.LuanException; |
8 | 8 |
9 | 9 |
10 public final class HtmlLib { | 10 public final class HtmlLib { |
11 | 11 |
12 public static void load(LuanState luan) throws LuanException { | 12 public static final String NAME = "Html"; |
13 luan.load("Html",LOADER); | |
14 } | |
15 | 13 |
16 public static final LuanFunction LOADER = new LuanFunction() { | 14 public static final LuanFunction LOADER = new LuanFunction() { |
17 @Override public Object call(LuanState luan,Object[] args) { | 15 @Override public Object call(LuanState luan,Object[] args) { |
18 LuanTable module = new LuanTable(); | 16 LuanTable module = new LuanTable(); |
19 try { | 17 try { |