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

http://git.enlightenment.org/website/www-content.git/commit/?id=ddefa47bbb4e276f8dc49b140b08dcd31550c8ee

commit ddefa47bbb4e276f8dc49b140b08dcd31550c8ee
Author: Larry de Oliveira Lira Junior <larry....@gmail.com>
Date:   Thu Dec 10 05:36:38 2015 -0800

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

diff --git a/pages/tutorial/javascript_tutorial.txt 
b/pages/tutorial/javascript_tutorial.txt
index d5f5a4a..0bf558a 100644
--- a/pages/tutorial/javascript_tutorial.txt
+++ b/pages/tutorial/javascript_tutorial.txt
@@ -17,9 +17,46 @@ You will need additional dependencies to Javascript Bindings:
 
 === Compilation ===
 
-For nodejs add ''//––with-js=nodejs//'' in configure flags to generate node 
files
+== Efl ==
+To configure efl sources with bindings to use in nodejs add 
''//––with-js=nodejs//'' in configure flags to generate node files
 
 <code bash>
-./configure --with-js=nodejs
+./configure --with-js=nodejs #in efl source path
+</code>
 
+and compile normaly
+
+<code bash>
+make
+make install
+</code>
+
+== Elementary ==
+
+In Elementary all you need is run ''./autotools'' and compile/install
+
+<code bash>
+./autotools #in elementary source path
+make
+make install
+</code>
+
+=== Node.Js ===
+
+After all compiled and installed is time to use the modules in node.js. 
+
+The default node.js files installed by efl/elm stay in prefix /lib path (if 
you don't define a prefix path is ''/usr/local/lib'')
+
+Node.js need know where find efl/elm node modules, to that export NODE_PATH 
with the file path to modules.
+
+<code bash>
+export NODE_PATH=/usr/local/lib #if needy replace with your prefix
+</code>
+
+Now you is ready to use new modules in node.js, use ''require'' to import de 
modules
+
+<code javascript>
+~$ node
+> require efl
+> require elm
 </code>
\ No newline at end of file

-- 


Reply via email to