def render(view, *args)
			data = args[0].is_a?(Hash) ? args[0] : {}
			output = ! (args[0] == false || args[1] == false)

			path = "#{@dir}/#{view}.txt.erb"

			view = File.file?(path) ? File.read(path) : view

			to_ivars(data)

			result = ERB.new(view).result(binding)

			puts result if output

			result
		end
def render(view, *args)
			data = args[0].is_a?(Hash) ? args[0] : {}
			output = ! (args[0] == false || args[1] == false)

			path = "#{@dir}/#{view}.txt.erb"

			view = File.file?(path) ? File.read(path) : view

			to_ivars(data)

			result = ERB.new(view).result(binding)

			puts result if output

			result
		end
Create a new +Mousevc::View+ instance

 Renders a view, passing it the given data. In the ERB template the hash variables will be available as instance variables e.g. +@view_variable+

 @note If the string passed to the +view+ parameter is an existing file it will be used as the ERB template. Otherwise the string will be parsed as ERB.

 @note Optionally the view output can be suppressed via setting output to +false+. The view will be returned as a string allowing later output e.g. +render('view', {:data => data}, false)+

 @note In the event that you want to suppress output and not provide any data you may substitute +data+ for +output+ in the parameter list e.g. +render('view', false)+

 @param view [String] the name of the view with +.txt.erb+ omitted
 @param args [Array] accepts 2 additional parameters.
 	- +data+ [Hash] the data to pass to the view (optionally omit)
 	- +output+ [Boolean] false if output is to be suppressed

 @return [String] the rendered view as a string