]> git.lizzy.rs Git - minetest.git/blobdiff - util/master/README.md
Increase liquid_loop_max to 10000 again
[minetest.git] / util / master / README.md
index 4730dc26977c8e505edf4b40674df53950d7d0fc..411fff3e9ec5595e15dc49add2896358c6eb96e9 100644 (file)
@@ -7,18 +7,43 @@ You will have to install node.js, doT.js and their dependencies to compile
 the serverlist webpage template.
 
 First install node.js, eg:
+
     # apt-get install nodejs
     # pacman -S nodejs
     # emerge nodejs
 
-Then install doT.js and it's dependencies:
+Then install doT.js and its dependencies:
+
     $ cd ~/code
     $ git clone https://github.com/olado/doT.git
     $ cd doT
     $ npm install
 
+Or with npm:
+
+    $ npm install dot commander mkdirp
+
 And finally compile the template:
+
     $ cd ~/minetest/util/master
     $ ~/code/doT/bin/dot-packer -s . -d .
 
+or
+
+    $ ~/node_modules/dot/bin/dot-packer -s . -d .
+
+
+Embedding to any page
+----------------------
 
+    <script>
+        var master = {
+            root: 'http://servers.minetest.net/',
+            limit: 10,
+            clients_min: 1,
+            no_flags: 1,
+            no_ping: 1,
+            no_uptime: 1
+        };
+    </script>
+    <script src="http://servers.minetest.net/list.js"></script>