<NME> views.rb.rbt
<BEF> # encoding: utf-8

# http://wiki.github.com/botanicus/rango/controllers

require "rango/stacks/controller"
<% if RUBY_VERSION > "1.9.2" %>
require "rango/mixins/action_args"
<% end %>

module <%= @name.camel_case %>
  class Application < Rango::StackController
    <% if RUBY_VERSION > "1.9.2" %>
    include Rango::ActionArgsMixin
    <% end %>

    # http://wiki.github.com/botanicus/rango/errors-handling
    def render_http_error(exception)
      if self.respond_to?(exception.to_snakecase)
        self.send(exception.to_snakecase, exception)
      else
        render_http_error_template(exception)
      end
    end

    def render_http_error_template(exception)
      render "errors/#{exception.status}.html"
    rescue TemplateNotFound
      render "errors/500.html"
    end
  end

  def not_found_handler
    raise NotFound, "No route found"
  end

  class ShowCase < Application
    def index
      render "index.html"
    end
  end

  <% @controllers.each do |controller| %>
  class <%= controller.camel_case %> < Application
    # TODO: implement <%= controller %> controller
  end

  <% end %>
end

<MSG> Template inheritance engine is now in separated template inheritance gem

<DFF> @@ -24,7 +24,7 @@ module <%= @name.camel_case %>
 
     def render_http_error_template(exception)
       render "errors/#{exception.status}.html"
-    rescue TemplateNotFound
+    rescue TemplateInheritance::TemplateNotFound
       render "errors/500.html"
     end
   end

Template inheritance engine is now in separated template inheritance gem