In RoR, what does the % part of %h2 mean? It’s in a html.haml file. Another file has = signs in front of everything – what does that mean?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s a html.haml file. HAML is an ERB alternative. The
%means it’s an HTML tag (<h2>in this case), the=means Ruby code.Here’s an ERB translation: