WWW-www.enlightenment.org pushed a commit to branch master.


commit 87eea3f85d1e8c5c752e5889b5c706248b8b2269
Author: Larry de Oliveira Lira Junior <larry....@gmail.com>
Date:   Thu Dec 10 07:44:14 2015 -0800

    Wiki page javascript_tutorial changed with summary [] by Larry de Oliveira 
Lira Junior
 pages/tutorial/javascript_tutorial.txt | 19 +++++++++++++++----
 1 file changed, 15 insertions(+), 4 deletions(-)

diff --git a/pages/tutorial/javascript_tutorial.txt 
index 1170c0c..92dedd1 100644
--- a/pages/tutorial/javascript_tutorial.txt
+++ b/pages/tutorial/javascript_tutorial.txt
@@ -61,7 +61,7 @@ Now you are ready to use the modules in node.js, use 
''require'' to import modul
 > elm = require("elm")
-===Button Example===
+====Button Example====
 You find this example in 
@@ -69,12 +69,12 @@ You find this example in 
 Import Elementary module
 <code javascript>
-Elm = require('elm').Elm;
+elm = require('elm');
 Create a new Window with autohide (the window is hide automatic when close is 
 <code javascript>
-win = new Elm.WinStandard(null);
+win = new elm.Elm.WinStandard(null);
 win.setTitle("Hello, World!");
@@ -103,4 +103,15 @@ To finish is needy show all elements, for that use 
 win.setSize(240, 60);
\ No newline at end of file
+====Twitter Example====
+This sample is more complex and we need some external requirements, the 
request module and twitter module, for that use ''npm'' (node package manager).
+<code bash>
+nom install request
+npm install twitter
+<note tip>npm is installed by default with Node.js</note>
\ No newline at end of file


Reply via email to