Skip to content

A converter of HAML like templates into Mako templates.

Notifications You must be signed in to change notification settings

raineri/MakoHaml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MakoHaml

Based on HamlPy, MakoHaml compiles Haml templates down to Mako templates.

Still under construction.

Syntax

Almost all of the XHTML syntax of Haml is preserved.

#profile
	.left.column
		#date 2010/02/18
		#address Toronto, ON
	.right.column
		#bio Jesse Miller

turns into..

<div id='profile'>
	<div class='left column'>
		<div id='date'>2010/02/18</div>
		<div id='address'>Toronto, ON</div>
	</div>
	<div class='right column'>
		<div id='bio'>Jesse Miller</div>
	</div>
</div>

The main difference is instead of interpreting Ruby, or even Python we instead can create Django Tags and Variables

%ul#atheletes
	- for athelete in athelete_list
		%li.athelete= athelete.name

turns into..

<ul id='atheletes'>
	{% for athelete in athelete_list %}
		<li class='athelete'>{{ athelete.name }}</li>
	{% endfor %}
</ul>

About

A converter of HAML like templates into Mako templates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 93.7%
  • HTML 6.0%
  • Ruby 0.3%