# Creating a Dojo Application

To create a new Dojo application, select File > New > Other > Dojo Application. The Dojo Application Wizard consists of two wizard pages.

The Name and Location page looks like this;

All inputs on this page are required. The Name will be the name for the new application. The Project input defines which workspace project the new application will be created in. The Location will be the name of the directory created which will contain all of the new application's assets. At this point, the user can accept the defaults on the remaining wizard page and select the Finish button to generate a new Dojo application.

The second page (shown below) requires that the user enter the default page title name that will be used in the generated html file, as well as whether to show the Dojo debug console within the page.

Once the Finish button is selected, the Dojo application wizard will generate a html template file which will serve as the basis for the Dojo application. This file will be created within the specified project within the specified project directory location.

## Dojo Code Snippets

The Dojo personality has predefined code snippets available for use during Dojo application development. To open the Snippets View, select Window > Show View > Other > Basic > Snippets. Within this view, there will be a Dojo category that will contain all available Dojo code snippets. To use a code snippet, simple drag the desired snippet from the view and drop it within the <body> of the Dojo application html file. Depending on the snippet, there may be inputs required at drop time, via a dialog window, which are used to customize the code snippet.

Related tasks
Creating a Custom Dojo Widget
Dojo application creation and launch demo

Copyright (c) 2006, 2007 IBM Corporation and others. All Rights Reserved.