Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement enough of the html generator to pass the standard test.
- Loading branch information
1 parent
0b65762
commit 6b462b2
Showing
4 changed files
with
83 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
%div | ||
%div | ||
Does not close properly | ||
%div Nested same level as next div | ||
%div | ||
%div | ||
Will be nested, but should be top level |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
<div>Does not close properly | ||
<div>Nested same level as next div</div> | ||
</div> | ||
<div>Will be nested, but should be top level</div> | ||
<div>Nested same level as next div</div></div> | ||
<div>Will be nested, but should be top level</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,7 @@ | ||
<?xml version='1.0' encoding='utf-8' ?> | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<title>Sample haml template</title> | ||
</head> | ||
<body> | ||
<div class="profile"> | ||
<div class="left column"> | ||
<div id="date">January 1, 2009</div> | ||
<div id="address">Richardson, TX</div> | ||
</div> | ||
<div class="right column"> | ||
<div id="email">tim@creationix.com</div> | ||
<div id="bio">Experienced software professional...</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Sample haml template</title></head> | ||
<body><div class="profile"><div class="left column"><div id="date">January 1, 2009</div> | ||
<div id="address">Richardson, TX</div></div> | ||
<div class="right column"><div id="email">tim@creationix.com</div> | ||
<div id="bio">Experienced software professional...</div></div></div></body></html> |