public this repo is viewable by everyone
Description: open-source e-commerce built on merb
Clone URL: git://github.com/myabc/merb_mart.git
Click here to lend your support to: merb_mart and make a donation at www.pledgie.com !
Converted view ERB syntax to Haml
myabc (author)
4 days ago
commit  cc109e953862f2a7501b1d033612a5dac4ec2644
tree    688bcb3d8929a69195c041db8cd10f0e74dc16aa
parent  e5e879ebc205d7f055885f29c9526e94d3e45606
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
0
@@ -1,33 +1,16 @@
0
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
0
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
0
- <head>
0
- <title><%= @title unless @title.nil? %></title>
0
- <meta http-equiv="content-type" content="text/html; charset=utf-8" />
0
- <link rel="stylesheet" href="/stylesheets/master.css" type="text/css" media="screen" charset="utf-8">
0
-
0
- <!-- TODO: add CSS -->
0
- <!-- TODO: add JS -->
0
-
0
- </head>
0
- <body>
0
- <div id="container">
0
- <div id="header">
0
-
0
-
0
-
0
-
0
- </div>
0
-
0
- <div id="content">
0
- <%= catch_content :for_layout %>
0
- </div>
0
-
0
- <div id="footer">
0
- <ul class="navigation">
0
-
0
- </ul>
0
- </div>
0
-
0
- </div>
0
- </body>
0
-</html>
0
+!!! Strict
0
+%html{ "xml:lang" => "en-us", :lang => "en-us", :xmlns => "http://www.w3.org/1999/xhtml" }
0
+ %head
0
+ %title= title @title unless @title.nil?
0
+ %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "content-type" }
0
+ = css_include_tag :master
0
+ / = css_include_tag :more
0
+ / = js_include_tag :js
0
+ %body
0
+ #container
0
+ #header
0
+ %p Header
0
+ #content
0
+ = catch_content :for_layout
0
+ #footer
0
+ %p Footer
0
\ No newline at end of file
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 
 
 
 
 
 
 
 
 
 
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
0
@@ -1,14 +1,11 @@
0
-<% form_tag :action => url(:login) do -%>
0
-<p><label for="login">Login</label><br/>
0
-<%= text_field :name => "login" %></p>
0
-
0
-<p><label for="password">Password</label><br/>
0
-<%= password_field :name => "password" %></p>
0
-
0
-<!-- Uncomment this if you want this functionality
0
-<p><label for="remember_me">Remember me:</label>
0
-<%= checkbox_field :name => 'remember_me' %></p>
0
--->
0
-
0
-<p><%= submit_button 'Log in' %></p>
0
-<% end -%>
0
\ No newline at end of file
0
+- form_tag :action => url(:login) do
0
+ %p
0
+ %label {:for => "login" } Login
0
+ = text_field :name => "login"
0
+ %p
0
+ %label { :for => "password" } Password
0
+ = password_field :name => "password"
0
+ %p
0
+ %label { :for => "remember_me"} Remember me:
0
+ = checkbox_field :name => 'remember_me'
0
+ %li= submit_button 'Log in'
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
 
 
 
 
 
 
20
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
0
@@ -1,18 +1,7 @@
0
-<%= error_messages_for @user %>
0
-<% form_for @user, :action => url(:users) do %>
0
- <p>
0
- <%= text_control :login, :label => "Login" %>
0
- </p>
0
- <p>
0
- <%= text_control :email, :label => "Email" %>
0
- </p>
0
- <p>
0
- <%= password_control :password, :label => "Password" %>
0
- </p>
0
- <p>
0
- <%= password_control :password_confirmation, :label => "Password Confirmation" %>
0
- </p>
0
- <p>
0
- <%= submit_button "Sign up" %>
0
- </p>
0
-<% end %>
0
\ No newline at end of file
0
+= error_messages_for @user
0
+- form_for :user, :action => url(:users) do
0
+ %p= text_control :login, :label => "Login"
0
+ %p= text_control :email, :label => "Email"
0
+ %p= password_control :password, :label => "Password"
0
+ %p= password_control :password_confirmation, :label => "Password Confirmation"
0
+ %p= submit_button "Sign up"
0
\ No newline at end of file

Comments

    No one has commented yet.