File tree Expand file tree Collapse file tree 2 files changed +41
-35
lines changed Expand file tree Collapse file tree 2 files changed +41
-35
lines changed Original file line number Diff line number Diff line change @@ -75,38 +75,4 @@ public static function __callStatic($name, $arguments)
75
75
}
76
76
77
77
78
- /*
79
- require 'markaby'
80
-
81
- mab = Markaby::Builder.new
82
- mab.html do
83
- head { title "Boats.com"
84
- body do
85
- h1 "Boats.com has great deals"
86
- ul do
87
- li "$49 for a canoe"
88
- li "$39 for a raft"
89
- li "$29 for a huge boot that floats and can fit 5 people"
90
- end
91
- end
92
- end
93
- puts mab.to_s
94
- */
95
- use \Markaby \TagBuilder as T ;
96
-
97
- $ m = new \Markaby \Builder ();
98
- $ m ->head ( array ('title ' => "Boats.com " ) )
99
- ->html5 (function (){
100
- return
101
- T::body (function (){
102
- return
103
- T::h1 ("Boats.com has great deals " ).
104
- T::ul (function (){
105
- return
106
- T::li ("$49 for a canoe " ).
107
- T::li ("$39 for a raft " ).
108
- T::li ("$29 for a huge boot that floats and can fit 5 people " );
109
- });
110
- });
111
- });
112
- echo $ m ;
78
+
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+
4
+
5
+ /*
6
+ require 'markaby'
7
+
8
+ mab = Markaby::Builder.new
9
+ mab.html do
10
+ head { title "Boats.com"
11
+ body do
12
+ h1 "Boats.com has great deals"
13
+ ul do
14
+ li "$49 for a canoe"
15
+ li "$39 for a raft"
16
+ li "$29 for a huge boot that floats and can fit 5 people"
17
+ end
18
+ end
19
+ end
20
+ puts mab.to_s
21
+ */
22
+ require 'php_markaby.php ' ;
23
+ use \Markaby \TagBuilder as T ;
24
+
25
+ $ m = new \Markaby \Builder ();
26
+ $ m ->head ( array ('title ' => "Boats.com " ) )
27
+ ->html5 (function (){
28
+ return
29
+ T::body (function (){
30
+ return
31
+ T::h1 ("Boats.com has great deals " ).
32
+ T::ul (function (){
33
+ return
34
+ T::li ("$49 for a canoe " ).
35
+ T::li ("$39 for a raft " ).
36
+ T::li ("$29 for a huge boot that floats and can fit 5 people " );
37
+ });
38
+ });
39
+ });
40
+ echo $ m ;
You can’t perform that action at this time.
0 commit comments