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

require "rango/rack/middlewares/basic"

require "multigiri"
require "multigiri/email_obfuscator"
# require "multigiri/google_analytics"
require "multigiri/html5"
require "multigiri/link_checker"
require "multigiri/default_attributes"
require "multigiri/minify"

Rango.after_boot(:rackup) do
  <%= @name.camel_case %>.rackup do
    use Rango::Middlewares::Basic
  end
end

<MSG> Use Multigiri in the stack generator

<DFF> @@ -13,5 +13,16 @@ require "multigiri/minify"
 Rango.after_boot(:rackup) do
   <%= @name.camel_case %>.rackup do
     use Rango::Middlewares::Basic
+
+    use Multigiri::HTML do
+      use Multigiri::HTML5::Forms
+      use Multigiri::HTML5::Hidden
+      use Multigiri::EmailObfuscator
+      # use Multigiri::GoogleAnalytics, :my_tracking_code
+      use Multigiri::DefaultAttributes
+      if Rango.development?
+        use Multigiri::LinkChecker, SimpleLogger::Logger.new("log/links.log")
+      end
+    end
   end
 end

Use Multigiri in the stack generator