forked from jessemiller/HamlPy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added proper output formating. Fixed all the tests.
Thanks for the initial idea from: Merge http://github.com/fitoria/HamlPy
- Loading branch information
Showing
22 changed files
with
130 additions
and
83 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
.project | ||
.pydevproject | ||
*.pyc | ||
dist | ||
build | ||
hamlpy.egg-info | ||
|
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
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
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 +1,3 @@ | ||
<div id='Article_123' class='article entry true'>Now this is interesting</div> | ||
<div id='Article_123' class='article entry true'> | ||
Now this is interesting | ||
</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,13 +1,13 @@ | ||
- extends "base_generic.html" | ||
|
||
- block title | ||
= section.title | ||
= section.title | ||
|
||
- block content | ||
%h1= section.title | ||
%h1= section.title | ||
|
||
- for story in story_list | ||
%h2 | ||
%a{'href':'{{ story.get_absolute_url }}'} | ||
= story.headline|upper | ||
%p= story.tease|truncatewords:"100" | ||
- for story in story_list | ||
%h2 | ||
%a{'href':'{{ story.get_absolute_url }}'} | ||
= story.headline|upper | ||
%p= story.tease|truncatewords:"100" |
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 +1,16 @@ | ||
{% extends "base_generic.html" %}{% block title %}{{ section.title }}{% endblock %}{% block content %}<h1>{{ section.title }}</h1>{% for story in story_list %}<h2><a href='{{ story.get_absolute_url }}'>{{ story.headline|upper }}</a></h2><p>{{ story.tease|truncatewords:"100" }}</p>{% endfor %}{% endblock %} | ||
{% extends "base_generic.html" %} | ||
|
||
{% block title %} | ||
{{ section.title }} | ||
{% endblock %} | ||
{% block content %} | ||
<h1>{{ section.title }}</h1> | ||
{% for story in story_list %} | ||
<h2> | ||
<a href='{{ story.get_absolute_url }}'> | ||
{{ story.headline|upper }} | ||
</a> | ||
</h2> | ||
<p>{{ story.tease|truncatewords:"100" }}</p> | ||
{% endfor %} | ||
{% endblock %} |
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,12 +1,11 @@ | ||
%div | ||
%div | ||
-# These comments won't show up | ||
This will | ||
-# | ||
None of this | ||
Inside of here will show | ||
up. | ||
Yikes! | ||
%div More | ||
%div | ||
-# These comments won't show up | ||
This will | ||
-# | ||
None of this | ||
Inside of here will show | ||
up. | ||
Yikes! | ||
%div More | ||
%div Hello | ||
|
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 +1,9 @@ | ||
<div><div>This will</div><div>More</div></div><div>Hello</div> | ||
<div> | ||
<div> | ||
|
||
This will | ||
|
||
</div> | ||
<div>More</div> | ||
</div> | ||
<div>Hello</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,6 +1,5 @@ | ||
.articles | ||
#article_1 | ||
.title.bold So happy | ||
#content_1.content | ||
Finally, I can use HAML again! | ||
|
||
#article_1 | ||
.title.bold So happy | ||
#content_1.content | ||
Finally, I can use HAML again! |
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 +1,8 @@ | ||
<div class='articles'><div id='article_1'><div class='title bold'>So happy</div><div id='content_1' class='content'>Finally, I can use HAML again!</div></div></div> | ||
<div class='articles'> | ||
<div id='article_1'> | ||
<div class='title bold'>So happy</div> | ||
<div id='content_1' class='content'> | ||
Finally, I can use HAML again! | ||
</div> | ||
</div> | ||
</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,4 +1,4 @@ | ||
/ | ||
%div.someClass | ||
%div | ||
None of this matters | ||
%div | ||
None of this matters |
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 +1,7 @@ | ||
<!-- <div class='someClass'><div>None of this matters</div></div> --> | ||
<!-- | ||
<div class='someClass'> | ||
<div> | ||
None of this matters | ||
</div> | ||
</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,3 +1,3 @@ | ||
%ul | ||
- for story in story_list | ||
%li= story.text | ||
- for story in story_list | ||
%li= story.text |
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 +1,5 @@ | ||
<ul>{% for story in story_list %}<li>{{ story.text }}</li>{% endfor %}</ul> | ||
<ul> | ||
{% for story in story_list %} | ||
<li>{{ story.text }}</li> | ||
{% endfor %} | ||
</ul> |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
%link | ||
%script | ||
%br | ||
%hr | ||
%hr |
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 +1,9 @@ | ||
<div /><br /><br /><meta content='text/html' /><img /><link /><script /><br /><hr /> | ||
<div /> | ||
<br /> | ||
<br /> | ||
<meta content='text/html' /> | ||
<img /> | ||
<link /> | ||
<script /> | ||
<br /> | ||
<hr /> |
Oops, something went wrong.