Skip to content
This repository
Browse code

renamed HTAML to Jade

  • Loading branch information...
commit 2c0497600e9ed83f5a924d7d7f50738066171556 1 parent 56dff24
Konstantin Kudryashov authored
20 README.md
Source Rendered
... ... @@ -1,6 +1,6 @@
1   -# HTAML - template compiler for PHP5.3
  1 +# Jade - template compiler for PHP5.3
2 2
3   -*HTAML* is a high performance template compiler heavily influenced by [Haml](http://haml-lang.com)
  3 +*Jade* is a high performance template compiler heavily influenced by [Haml](http://haml-lang.com)
4 4 and implemented for PHP 5.3.
5 5
6 6 ## Features
@@ -17,11 +17,11 @@ and implemented for PHP 5.3.
17 17 - :cdata
18 18 - :javascript
19 19 - you even can write & add own filters throught API
20   - - [TextMate Bundle](http://github.com/everzet/HTAML-tmbundle)
  20 + - [TextMate Bundle](http://github.com/everzet/Jade-tmbundle)
21 21
22 22 ## Public API
23 23
24   - $parser = new \Everzet\HTAML\Parser();
  24 + $parser = new \Everzet\Jade\Parser();
25 25
26 26 // Parse a string
27 27 echo $parser->parse('!!! 5');
@@ -34,7 +34,7 @@ and implemented for PHP 5.3.
34 34
35 35 ### Indentation
36 36
37   -HTAML is indentation based, however currently only supports a _2 space_ indent.
  37 +Jade is indentation based, however currently only supports a _2 space_ indent.
38 38
39 39 ### Tags
40 40
@@ -85,7 +85,7 @@ well cool, but how about large bodies of text:
85 85 | foo bar baz
86 86 | rawr rawr
87 87 | super cool
88   - | go HTAML go
  88 + | go Jade go
89 89
90 90 renders `<p>foo bar baz rawr.....</p>`
91 91
@@ -104,7 +104,7 @@ now we have `<p><?php echo $something ?></p>`
104 104
105 105 ### Attributes
106 106
107   -HTAML currently supports '(' and ')' as attribute delimiters.
  107 +Jade currently supports '(' and ')' as attribute delimiters.
108 108
109 109 a(href='/login', title='View login page') Login
110 110
@@ -173,7 +173,7 @@ Renders:
173 173
174 174 ### Buffered / Non-buffered output
175 175
176   -HTAML currently supports three classifications of executable code. The first
  176 +Jade currently supports three classifications of executable code. The first
177 177 is prefixed by `-`, and is not buffered:
178 178
179 179 - var $foo = 'bar';
@@ -183,7 +183,7 @@ This can be used for conditionals, or iteration:
183 183 - foreach ($items as $item)
184 184 p= $item
185 185
186   -Due to HTAML's buffering techniques the following is valid as well:
  186 +Due to Jade's buffering techniques the following is valid as well:
187 187
188 188 - if ($foo)
189 189 ul
@@ -204,7 +204,7 @@ Which outputs `bar<h1>bar<h1/>`.
204 204
205 205 ### Code blocks
206 206
207   -Also, HTAML has Code Blocks, that supports basic PHP template syntax:
  207 +Also, Jade has Code Blocks, that supports basic PHP template syntax:
208 208
209 209 ul
210 210 - while (true)
6 phpunit.xml.dist
@@ -12,14 +12,14 @@
12 12 bootstrap="tests/bootstrap.php"
13 13 >
14 14 <testsuites>
15   - <testsuite name="HTAML Test Suite">
16   - <directory>./tests/Everzet/HTAML/</directory>
  15 + <testsuite name="Jade Test Suite">
  16 + <directory>./tests/Everzet/Jade/</directory>
17 17 </testsuite>
18 18 </testsuites>
19 19
20 20 <filter>
21 21 <whitelist>
22   - <directory>./src/Everzet/HTAML/</directory>
  22 + <directory>./src/Everzet/Jade/</directory>
23 23 </whitelist>
24 24 </filter>
25 25 </phpunit>
6 src/Everzet/HTAML/Filters/BaseFilterInterface.php → src/Everzet/Jade/Filters/BaseFilterInterface.php
... ... @@ -1,9 +1,9 @@
1 1 <?php
2 2
3   -namespace Everzet\HTAML\Filters;
  3 +namespace Everzet\Jade\Filters;
4 4
5 5 /*
6   - * This file is part of the HTAML package.
  6 + * This file is part of the Jade package.
7 7 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
8 8 *
9 9 * For the full copyright and license information, please view the LICENSE
@@ -13,7 +13,7 @@
13 13 /**
14 14 * Base filter interface.
15 15 *
16   - * @package HTAML
  16 + * @package Jade
17 17 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 18 */
19 19 interface BaseFilterInterface
8 src/Everzet/HTAML/Filters/BlockFilterInterface.php → src/Everzet/Jade/Filters/BlockFilterInterface.php
... ... @@ -1,11 +1,11 @@
1 1 <?php
2 2
3   -namespace Everzet\HTAML\Filters;
  3 +namespace Everzet\Jade\Filters;
4 4
5   -use \Everzet\HTAML\Filters\BaseFilterInterface;
  5 +use \Everzet\Jade\Filters\BaseFilterInterface;
6 6
7 7 /*
8   - * This file is part of the HTAML package.
  8 + * This file is part of the Jade package.
9 9 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
10 10 *
11 11 * For the full copyright and license information, please view the LICENSE
@@ -15,7 +15,7 @@
15 15 /**
16 16 * Filter interface.
17 17 *
18   - * @package HTAML
  18 + * @package Jade
19 19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 20 */
21 21 interface BlockFilterInterface extends BaseFilterInterface
8 src/Everzet/HTAML/Filters/CDATA.php → src/Everzet/Jade/Filters/CDATA.php
... ... @@ -1,11 +1,11 @@
1 1 <?php
2 2
3   -namespace Everzet\HTAML\Filters;
  3 +namespace Everzet\Jade\Filters;
4 4
5   -use \Everzet\HTAML\Filters\BlockFilterInterface;
  5 +use \Everzet\Jade\Filters\BlockFilterInterface;
6 6
7 7 /*
8   - * This file is part of the HTAML package.
  8 + * This file is part of the Jade package.
9 9 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
10 10 *
11 11 * For the full copyright and license information, please view the LICENSE
@@ -15,7 +15,7 @@
15 15 /**
16 16 * CDATA filter.
17 17 *
18   - * @package HTAML
  18 + * @package Jade
19 19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 20 */
21 21 class CDATA implements BlockFilterInterface
8 src/Everzet/HTAML/Filters/JavaScript.php → src/Everzet/Jade/Filters/JavaScript.php
... ... @@ -1,11 +1,11 @@
1 1 <?php
2 2
3   -namespace Everzet\HTAML\Filters;
  3 +namespace Everzet\Jade\Filters;
4 4
5   -use \Everzet\HTAML\Filters\BlockFilterInterface;
  5 +use \Everzet\Jade\Filters\BlockFilterInterface;
6 6
7 7 /*
8   - * This file is part of the HTAML package.
  8 + * This file is part of the Jade package.
9 9 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
10 10 *
11 11 * For the full copyright and license information, please view the LICENSE
@@ -15,7 +15,7 @@
15 15 /**
16 16 * JavaScript filter.
17 17 *
18   - * @package HTAML
  18 + * @package Jade
19 19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 20 */
21 21 class JavaScript implements BlockFilterInterface
10 src/Everzet/HTAML/Filters/PHP.php → src/Everzet/Jade/Filters/PHP.php
... ... @@ -1,12 +1,12 @@
1 1 <?php
2 2
3   -namespace Everzet\HTAML\Filters;
  3 +namespace Everzet\Jade\Filters;
4 4
5   -use \Everzet\HTAML\Filters\BlockFilterInterface;
6   -use \Everzet\HTAML\Filters\TextFilterInterface;
  5 +use \Everzet\Jade\Filters\BlockFilterInterface;
  6 +use \Everzet\Jade\Filters\TextFilterInterface;
7 7
8 8 /*
9   - * This file is part of the HTAML package.
  9 + * This file is part of the Jade package.
10 10 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
11 11 *
12 12 * For the full copyright and license information, please view the LICENSE
@@ -16,7 +16,7 @@
16 16 /**
17 17 * PHP filter.
18 18 *
19   - * @package HTAML
  19 + * @package Jade
20 20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 21 */
22 22 class PHP implements BlockFilterInterface, TextFilterInterface
8 src/Everzet/HTAML/Filters/TextFilterInterface.php → src/Everzet/Jade/Filters/TextFilterInterface.php
... ... @@ -1,11 +1,11 @@
1 1 <?php
2 2
3   -namespace Everzet\HTAML\Filters;
  3 +namespace Everzet\Jade\Filters;
4 4
5   -use \Everzet\HTAML\Filters\BaseFilterInterface;
  5 +use \Everzet\Jade\Filters\BaseFilterInterface;
6 6
7 7 /*
8   - * This file is part of the HTAML package.
  8 + * This file is part of the Jade package.
9 9 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
10 10 *
11 11 * For the full copyright and license information, please view the LICENSE
@@ -15,7 +15,7 @@
15 15 /**
16 16 * TextFilter interface.
17 17 *
18   - * @package HTAML
  18 + * @package Jade
19 19 * @author Konstantin Kudryashov <ever.zet@gmail.com>
20 20 */
21 21 interface TextFilterInterface extends BaseFilterInterface
34 src/Everzet/HTAML/Parser.php → src/Everzet/Jade/Parser.php
... ... @@ -1,17 +1,17 @@
1 1 <?php
2 2
3   -namespace Everzet\HTAML;
  3 +namespace Everzet\Jade;
4 4
5   -use \Everzet\HTAML\ParserException;
6   -use \Everzet\HTAML\Filters\BaseFilterInterface as Filter;
7   -use \Everzet\HTAML\Filters\BlockFilterInterface as BlockFilter;
8   -use \Everzet\HTAML\Filters\TextFilterInterface as TextFilter;
9   -use \Everzet\HTAML\Filters\PHP;
10   -use \Everzet\HTAML\Filters\CDATA;
11   -use \Everzet\HTAML\Filters\JavaScript;
  5 +use \Everzet\Jade\ParserException;
  6 +use \Everzet\Jade\Filters\BaseFilterInterface as Filter;
  7 +use \Everzet\Jade\Filters\BlockFilterInterface as BlockFilter;
  8 +use \Everzet\Jade\Filters\TextFilterInterface as TextFilter;
  9 +use \Everzet\Jade\Filters\PHP;
  10 +use \Everzet\Jade\Filters\CDATA;
  11 +use \Everzet\Jade\Filters\JavaScript;
12 12
13 13 /*
14   - * This file is part of the HTAML package.
  14 + * This file is part of the Jade package.
15 15 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
16 16 *
17 17 * For the full copyright and license information, please view the LICENSE
@@ -19,9 +19,9 @@
19 19 */
20 20
21 21 /**
22   - * HTAML Parser.
  22 + * Jade Parser.
23 23 *
24   - * @package HTAML
  24 + * @package Jade
25 25 * @author Konstantin Kudryashov <ever.zet@gmail.com>
26 26 */
27 27 class Parser
@@ -80,9 +80,9 @@ class Parser
80 80 protected $mode;
81 81
82 82 /**
83   - * Inits HTAML parser with the given input string.
  83 + * Inits Jade parser with the given input string.
84 84 *
85   - * @param string $input HTAML string
  85 + * @param string $input Jade string
86 86 */
87 87 public function __construct($input = null)
88 88 {
@@ -117,9 +117,9 @@ public function setBlockEnd($begin, $end) {
117 117 }
118 118
119 119 /**
120   - * Sets HTAML string to parse
  120 + * Sets Jade string to parse
121 121 *
122   - * @param string $input HTAML to parse
  122 + * @param string $input Jade to parse
123 123 */
124 124 public function setInput($input)
125 125 {
@@ -129,7 +129,7 @@ public function setInput($input)
129 129 /**
130 130 * Parse input string.
131 131 *
132   - * @param string $input HTAML string
  132 + * @param string $input Jade string
133 133 *
134 134 * @return string HTML
135 135 */
@@ -347,7 +347,7 @@ protected function peek()
347 347 *
348 348 * @return stdClass
349 349 *
350   - * @throws \Everzet\HTAML\ParserException
  350 + * @throws \Everzet\Jade\ParserException
351 351 */
352 352 protected function expect($type)
353 353 {
8 src/Everzet/HTAML/ParserException.php → src/Everzet/Jade/ParserException.php
... ... @@ -1,9 +1,9 @@
1 1 <?php
2 2
3   -namespace Everzet\HTAML;
  3 +namespace Everzet\Jade;
4 4
5 5 /*
6   - * This file is part of the HTAML package.
  6 + * This file is part of the Jade package.
7 7 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
8 8 *
9 9 * For the full copyright and license information, please view the LICENSE
@@ -11,9 +11,9 @@
11 11 */
12 12
13 13 /**
14   - * HTAML Parser Basic Exception.
  14 + * Jade Parser Basic Exception.
15 15 *
16   - * @package HTAML
  16 + * @package Jade
17 17 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 18 */
19 19 class ParserException extends \Exception
12 src/Everzet/HTAML/Renderers/Cached.php → src/Everzet/Jade/Renderers/Cached.php
... ... @@ -1,12 +1,12 @@
1 1 <?php
2 2
3   -namespace Everzet\HTAML\Renderers;
  3 +namespace Everzet\Jade\Renderers;
4 4
5   -use \Everzet\HTAML\Parser;
6   -use \Everzet\HTAML\Renderers\Renderer;
  5 +use \Everzet\Jade\Parser;
  6 +use \Everzet\Jade\Renderers\Renderer;
7 7
8 8 /*
9   - * This file is part of the HTAML package.
  9 + * This file is part of the Jade package.
10 10 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
11 11 *
12 12 * For the full copyright and license information, please view the LICENSE
@@ -14,9 +14,9 @@
14 14 */
15 15
16 16 /**
17   - * HTAML cached renderer
  17 + * Jade cached renderer
18 18 *
19   - * @package HTAML
  19 + * @package Jade
20 20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 21 */
22 22 class Cached extends Renderer
12 src/Everzet/HTAML/Renderers/Renderer.php → src/Everzet/Jade/Renderers/Renderer.php
... ... @@ -1,12 +1,12 @@
1 1 <?php
2 2
3   -namespace Everzet\HTAML\Renderers;
  3 +namespace Everzet\Jade\Renderers;
4 4
5   -use \Everzet\HTAML\Parser;
6   -use \Everzet\HTAML\ParserException;
  5 +use \Everzet\Jade\Parser;
  6 +use \Everzet\Jade\ParserException;
7 7
8 8 /*
9   - * This file is part of the HTAML package.
  9 + * This file is part of the Jade package.
10 10 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
11 11 *
12 12 * For the full copyright and license information, please view the LICENSE
@@ -14,9 +14,9 @@
14 14 */
15 15
16 16 /**
17   - * HTAML basic renderer
  17 + * Jade basic renderer
18 18 *
19   - * @package HTAML
  19 + * @package Jade
20 20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
21 21 */
22 22 class Renderer
28 tests/Everzet/HTAML/FiltersTest.php → tests/Everzet/Jade/FiltersTest.php
... ... @@ -1,9 +1,9 @@
1 1 <?php
2 2
3   -use \Everzet\HTAML\Parser;
  3 +use \Everzet\Jade\Parser;
4 4
5 5 /*
6   - * This file is part of the HTAML package.
  6 + * This file is part of the Jade package.
7 7 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
8 8 *
9 9 * For the full copyright and license information, please view the LICENSE
@@ -22,10 +22,10 @@ public function testFilterCodeInsertion()
22 22 {
23 23 $this->assertEquals(
24 24 "<script type=\"text/javascript\">\n//<![CDATA[\nvar name = \"<?php echo \$name ?>\";\n//]]>\n</script>",
25   - $this->parse(<<<HTAML
  25 + $this->parse(<<<Jade
26 26 :javascript
27 27 | var name = "{{\$name}}";
28   -HTAML
  28 +Jade
29 29 )
30 30 );
31 31 }
@@ -34,29 +34,29 @@ public function testCDATAFilter()
34 34 {
35 35 $this->assertEquals(
36 36 "<![CDATA[\nfoo\n]]>",
37   - $this->parse(<<<HTAML
  37 + $this->parse(<<<Jade
38 38 :cdata
39 39 | foo
40   -HTAML
  40 +Jade
41 41 )
42 42 );
43 43 $this->assertEquals(
44 44 "<![CDATA[\nfoo\nbar\n]]>",
45   - $this->parse(<<<HTAML
  45 + $this->parse(<<<Jade
46 46 :cdata
47 47 | foo
48 48 | bar
49   -HTAML
  49 +Jade
50 50 )
51 51 );
52 52 $this->assertEquals(
53 53 "<![CDATA[\nfoo\nbar\n]]>\n<p>something else</p>",
54   - $this->parse(<<<HTAML
  54 + $this->parse(<<<Jade
55 55 :cdata
56 56 | foo
57 57 | bar
58 58 p something else
59   -HTAML
  59 +Jade
60 60 )
61 61 );
62 62 }
@@ -65,10 +65,10 @@ public function testJavaScriptFilter()
65 65 {
66 66 $this->assertEquals(
67 67 "<script type=\"text/javascript\">\n//<![CDATA[\nalert('foo')\n//]]>\n</script>",
68   - $this->parse(<<<HTAML
  68 + $this->parse(<<<Jade
69 69 :javascript
70 70 | alert('foo')
71   -HTAML
  71 +Jade
72 72 )
73 73 );
74 74 }
@@ -77,12 +77,12 @@ public function testPHPFilter()
77 77 {
78 78 $this->assertEquals(
79 79 "<?php\n\$bar = 10;\n\$bar++;\necho \$bar;\n?>",
80   - $this->parse(<<<HTAML
  80 + $this->parse(<<<Jade
81 81 :php
82 82 | \$bar = 10;
83 83 | \$bar++;
84 84 | echo \$bar;
85   -HTAML
  85 +Jade
86 86 )
87 87 );
88 88 }
62 tests/Everzet/HTAML/ParserTest.php → tests/Everzet/Jade/ParserTest.php
... ... @@ -1,9 +1,9 @@
1 1 <?php
2 2
3   -use \Everzet\HTAML\Parser;
  3 +use \Everzet\Jade\Parser;
4 4
5 5 /*
6   - * This file is part of the HTAML package.
  6 + * This file is part of the Jade package.
7 7 * (c) 2010 Konstantin Kudryashov <ever.zet@gmail.com>
8 8 *
9 9 * For the full copyright and license information, please view the LICENSE
@@ -26,7 +26,7 @@ public function testDoctypes()
26 26
27 27 public function testUnknownFilter()
28 28 {
29   - $this->setExpectedException("Everzet\\HTAML\\ParserException");
  29 + $this->setExpectedException("Everzet\\Jade\\ParserException");
30 30 $this->parse(":doesNotExist\n");
31 31 }
32 32
@@ -48,10 +48,10 @@ public function testSingleQuotes()
48 48 <?php \$path = 'foo' ?>
49 49 <a href="/<?php echo \$path ?>"></a>
50 50 HTML
51   -, $this->parse(<<<HTAML
  51 +, $this->parse(<<<Jade
52 52 - \$path = 'foo'
53 53 a(href='/{{\$path}}')
54   -HTAML
  54 +Jade
55 55 ));
56 56 }
57 57
@@ -94,7 +94,7 @@ public function testTags()
94 94
95 95 public function testNestedTags()
96 96 {
97   - $htaml = <<<HTAML
  97 + $htaml = <<<Jade
98 98 ul
99 99 li a
100 100 li b
@@ -103,7 +103,7 @@ public function testNestedTags()
103 103 li c
104 104 li d
105 105 li e
106   -HTAML;
  106 +Jade;
107 107 $html = <<<HTML
108 108 <ul>
109 109 <li>a</li>
@@ -119,11 +119,11 @@ public function testNestedTags()
119 119 HTML;
120 120 $this->assertEquals($html, $this->parse($htaml));
121 121
122   - $htaml = <<<HTAML
  122 + $htaml = <<<Jade
123 123 a(href="#") foo
124 124 | bar
125 125 | baz
126   -HTAML;
  126 +Jade;
127 127 $html = <<<HTML
128 128 <a href="#">
129 129 foo
@@ -133,12 +133,12 @@ public function testNestedTags()
133 133 HTML;
134 134 $this->assertEquals($html, $this->parse($htaml));
135 135
136   - $htaml = <<<HTAML
  136 + $htaml = <<<Jade
137 137 ul
138 138 li one
139 139 ul two
140 140 li three
141   -HTAML;
  141 +Jade;
142 142 $html = <<<HTML
143 143 <ul>
144 144 <li>one</li>
@@ -153,7 +153,7 @@ public function testNestedTags()
153 153
154 154 public function testVariableLengthNewlines()
155 155 {
156   - $htaml = <<<HTAML
  156 + $htaml = <<<Jade
157 157 ul
158 158 li a
159 159
@@ -166,7 +166,7 @@ public function testVariableLengthNewlines()
166 166
167 167 li d
168 168 li e
169   -HTAML;
  169 +Jade;
170 170 $html = <<<HTML
171 171 <ul>
172 172 <li>a</li>
@@ -185,7 +185,7 @@ public function testVariableLengthNewlines()
185 185
186 186 public function testNewlines()
187 187 {
188   - $htaml = <<<HTAML
  188 + $htaml = <<<Jade
189 189 ul
190 190 li a
191 191
@@ -201,7 +201,7 @@ public function testNewlines()
201 201 li c
202 202 li d
203 203 li e
204   -HTAML;
  204 +Jade;
205 205 $html = <<<HTML
206 206 <ul>
207 207 <li>a</li>
@@ -302,21 +302,21 @@ public function testCodeAttrs()
302 302
303 303 public function testCode()
304 304 {
305   - $htaml = <<<HTAML
  305 + $htaml = <<<Jade
306 306 - \$foo = "<script>";
307 307 = \$foo
308   -HTAML;
  308 +Jade;
309 309 $html = <<<HTML
310 310 <?php \$foo = "<script>"; ?>
311 311 <?php echo \$foo ?>
312 312 HTML;
313 313 $this->assertEquals($html, $this->parse($htaml));
314 314
315   - $htaml = <<<HTAML
  315 + $htaml = <<<Jade
316 316 - \$foo = "<script>";
317 317 - if (null !== \$foo)
318 318 = \$foo
319   -HTAML;
  319 +Jade;
320 320 $html = <<<HTML
321 321 <?php \$foo = "<script>"; ?>
322 322 <?php if (null !== \$foo): ?>
@@ -325,12 +325,12 @@ public function testCode()
325 325 HTML;
326 326 $this->assertEquals($html, $this->parse($htaml));
327 327
328   - $htaml = <<<HTAML
  328 + $htaml = <<<Jade
329 329 - \$foo = "<script>";
330 330 p
331 331 - if (null !== \$foo)
332 332 = \$foo
333   -HTAML;
  333 +Jade;
334 334 $html = <<<HTML
335 335 <?php \$foo = "<script>"; ?>
336 336 <p>
@@ -341,12 +341,12 @@ public function testCode()
341 341 HTML;
342 342 $this->assertEquals($html, $this->parse($htaml));
343 343
344   - $htaml = <<<HTAML
  344 + $htaml = <<<Jade
345 345 - \$foo = "<script>";
346 346 p
347 347 - if (null !== \$foo)
348 348 strong= \$foo
349   -HTAML;
  349 +Jade;
350 350 $html = <<<HTML
351 351 <?php \$foo = "<script>"; ?>
352 352 <p>
@@ -357,14 +357,14 @@ public function testCode()
357 357 HTML;
358 358 $this->assertEquals($html, $this->parse($htaml));
359 359
360   - $htaml = <<<HTAML
  360 + $htaml = <<<Jade
361 361 - \$foo = "<script>";
362 362 p
363 363 - if (null !== \$foo)
364 364 strong= \$foo
365 365 - else
366 366 h2= \$foo / 2
367   -HTAML;
  367 +Jade;
368 368 $html = <<<HTML
369 369 <?php \$foo = "<script>"; ?>
370 370 <p>
@@ -377,14 +377,14 @@ public function testCode()
377 377 HTML;
378 378 $this->assertEquals($html, $this->parse($htaml));
379 379
380   - $htaml = <<<HTAML
  380 + $htaml = <<<Jade
381 381 - \$foo = "<script>";
382 382 p
383 383 - if (null !== \$foo)
384 384 strong= \$foo
385 385 - else
386 386 h2= \$foo / 2
387   -HTAML;
  387 +Jade;
388 388 $html = <<<HTML
389 389 <?php \$foo = "<script>"; ?>
390 390 <p>
@@ -397,7 +397,7 @@ public function testCode()
397 397 HTML;
398 398 $this->assertEquals($html, $this->parse($htaml));
399 399
400   - $htaml = <<<HTAML
  400 + $htaml = <<<Jade
401 401 - \$foo = "<script>";
402 402 p
403 403 - switch (\$foo)
@@ -407,7 +407,7 @@ public function testCode()
407 407 strong#name= \$foo * 2
408 408 - case 5
409 409 p some text
410   -HTAML;
  410 +Jade;
411 411 $html = <<<HTML
412 412 <?php \$foo = "<script>"; ?>
413 413 <p>
@@ -429,7 +429,7 @@ public function testCode()
429 429
430 430 public function testCorrectEndings()
431 431 {
432   - $htaml = <<<HTAML
  432 + $htaml = <<<Jade
433 433 !!! strict
434 434 html
435 435 - use_helper('LESS')
@@ -451,7 +451,7 @@ public function testCorrectEndings()
451 451 a( href = '#' ) Третий
452 452
453 453 = \$sf_content
454   -HTAML;
  454 +Jade;
455 455 $html = <<<HTML
456 456 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
457 457 <html>

0 comments on commit 2c04976

Please sign in to comment.
Something went wrong with that request. Please try again.