# Scripting Overview {#scriptoverview}
-DALi has:
-- JSON to support:
- - layouting
- - theme / styling
- - templated actor/control creation
- - basic actions
- - DALi GUI builder generates JSON files. Allows UI designers to create / modify the application look and feel.
-
-- JavaScript to support:
- - Rapid Application Development
- - Hybrid C++/JavaScript applications
- - Leverage third party JavaScript modules (backbone.js etc)
+DALi has JSON to support:
+- layouting
+- theme / styling
+- templated actor/control creation
+- basic actions
+- DALi GUI builder generates JSON files. Allows UI designers to create / modify the application look and feel.
JSON support is built in to DALi.
-JavaScript support is via a plugin held in DALi Toolkit, which builds automatically if Google's V8 engine is installed.
-The V8 version required by DALi can be built and installed using dali-core/scripts/dali_env script.
-
-Files can be loaded inside any DALi application, or from command line using the launcher ( part of dali-demo).
+Files can be loaded inside any DALi application, or from command line using the launcher (part of dali-demo).
~~~{.cpp}
-scripting.example hello-world.json hello-world.js
+scripting.example hello-world.json
~~~
-We currently have JSON and JavaScript example files held in dali-demo/resources/scripts
+We currently have JSON example files held in dali-demo/resources/scripts
-![ ](../assets/img/javascript-wrapping-guide/scripting-overview.png)
-![ ](scripting-overview.png)
-
# JSON
JSON file contains different sections:
~~~
-#### JavaScript example
-
-~~~{.js}
-
-var builder = new dali.Builder();
-
-builder.loadFromFile( "my-app.json");
-
-var userActorTree = builder.create( { template:"users"} );
-
-~~~
-
#### C++ example
~~~{.cpp}
}
~~~
-#### JavaScript example
-
-~~~{.js}
-builder.applyStyle( "live-tv-focus", tvIcon );
-~~~
-
#### C++ example
~~~{.cpp}
},
~~~
-#### JavaScript example
-
-~~~{.js}
-// JavaScript
-
-var anim = builder.createAnimation( { animation:"animate-show", actor: myActor } );
-~~~
+#### C++ example
~~~{.cpp}
// C+++
....
~~~
-#### JavaScript example
-
-~~~{.js}
-// add all actors under stage section to the root layer
-builder.addActors( dali.stage.getRootLayer() );
-~~~
-
#### C++ example
~~~{.cpp}
builder.AddActors( Stage::GetCurrent().GetRootLayer() );
~~~
-# JavaScript
-
-For the JavaScript API please build dali-toolkit with YUIDOC installed. This will generate the documentation.
-See dali-toolkit/plugins/dali-script-v8/docs/README.txt
-
-To execute JavaScript from C++
-
-~~~{.cpp}
-script = Toolkit::Script::New();
-
-script.ExecuteFile( scriptFileName );
-~~~
-
-@class _Guide_JSON_and_JavaScript_overview
*/