def theme_to_less(theme)
        out = "// Generated by the Express Theme Previewer\n"

        if theme[:branding]
          out += "\n//----------------------------------------\n"
          out += "// General Branding\n"
          out += "//----------------------------------------\n"
          out += theme[:branding].map { |k,v| "#{k}: #{v};" }.join("\n")
          out += "\n"
        end

        if theme[:variables]
          out += "\n//----------------------------------------\n"
          out += "// Theme Variables\n"
          out += "//----------------------------------------\n"
          theme[:variables].each do |section,vars|
            out += "// #{section}\n"
            out += vars.map { |k,v| "#{k}: #{v};" }.join("\n")
            out += "\n\n"
          end
        end

        return out
      end
def theme_to_less(theme)
        out = "// Generated by the Express Theme Previewer\n"

        if theme[:branding]
          out += "\n//----------------------------------------\n"
          out += "// General Branding\n"
          out += "//----------------------------------------\n"
          out += theme[:branding].map { |k,v| "#{k}: #{v};" }.join("\n")
          out += "\n"
        end

        if theme[:variables]
          out += "\n//----------------------------------------\n"
          out += "// Theme Variables\n"
          out += "//----------------------------------------\n"
          theme[:variables].each do |section,vars|
            out += "// #{section}\n"
            out += vars.map { |k,v| "#{k}: #{v};" }.join("\n")
            out += "\n\n"
          end
        end

        return out
      end
Convert a theme provided as a hash into a properly
 formatted LESS file