Hi, Strange behavior while working with OAuth2 on Google Login where the URL contains the word "*code*" in the URL: the generated HTML code out of the HAML code breaks HTML indent.
Example: @g_authorize_uri = 'https://accounts.google.com/o/oauth2/auth?response_type= *code*... # note the word "code"! *layout.haml* !!! 5 %html %head %meta(charset="utf-8") %title Sinatra Authentication %body = yield *index.haml* - if session? %p Home - Welcome #{session[:username]}! - else %p Home - Signup %a{:href => *@g_authorize_uri*} Signup with Google %form(action="/signup" method="post") %div %label(for="username")Username: %input#username(type="text" name="username") %div %label(for="password")Password: %input#password(type="password" name="password") ... You can change any word in the index.haml to "code" in the produced HTML code indent is broken for that block. Just replace the word "code" with on other expression and the generated HTML is properly intended. Output (with the word "code", e.g. in the <a> tag or somewhere else): <html> <head> <meta charset='utf-8' /> <title>code</title> </head> <body> <a href='/ <view-source:http://localhost:3000/>'>Home</a> <a href='/login <view-source:http://localhost:3000/login>'>Login</a> <a href='/signup <view-source:http://localhost:3000/signup>'>Signup</a> <p> Signup </p> <p> <a href='https://accounts.google.com/o/oauth2/auth?response_type=*code* <view-source:https://accounts.google.com/o/oauth2/auth?response_type=code&>'>Sign in with Google</a> <br /> <a href='http://www.devbit.ch/ <view-source:http://www.devbit.ch/>'>Hallo</a> </p> <form action='/signup' method='post'> <div> <label for='username'>Username:</label> I know, just cosmetics, but strange... -- You received this message because you are subscribed to the Google Groups "Haml" group. To view this discussion on the web visit https://groups.google.com/d/msg/haml/-/Wx4QQ4OVXaQJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
