Extend the Em.View class, and create an object in your JavaScript to define a view. You can declare your functions and variables inside that.
Insert a view in your template. Now, follow the syntax given to write the handlebar script {{ #view App.ViewName}}