Skip to content

Instantly share code, notes, and snippets.

@chartjes
Created August 10, 2011 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chartjes/1136080 to your computer and use it in GitHub Desktop.
Save chartjes/1136080 to your computer and use it in GitHub Desktop.
Sample Djano template using HAML
%head
%meta{'http-equiv': 'Content-Type', 'content': 'text/html; charset=UTF-8'}
%title Internet Baseball League
%link{'rel': 'stylesheet', 'type': 'text/css', 'href':'/site_media/css/grid.css'}
%link{'rel': 'stylesheet', 'type': 'text/css', 'href':'/site_media/css/ibl.css'}
%script{'src': "/site_media/js/modernizr-1.7.min.js"}
%body
%div{'class': 'row'}
#sidebar{'class': 'column grid_2'}
%img{'src': '/site_media/images/ibl_logo.gif', 'alt': 'IBL Logo'}<br>
#navcontainer
%ul#navlist
%li
%a{'href': '{% url home %}'} Home
%li
%a{'href': 'http://archive.ibl.org'} Archive
%li
%a{'href': 'http://iblgame.ibl.org'} Cards
%li
%a{'href': 'http://wiki.ibl.org/dokuwiki/doku.php?id=constitution'} Constitution
%li
%a{'href': '{% url free-agents %}'} Free Agents
%li
%a{'href': 'http://wiki.ibl.org/dokuwiki/doku.php?id=owners'} Owners
%li
%a{'href': '/results'} Results
%li
%a{'href': '/rotations'} Rotations
%li
%a{'href': '/schedule'} Schedule
%li
%a{'href': '/standings'} Standings
%li
%a{'href': '/starts'} Starts / Limits
%li
%a{'href': 'http://wiki.ibl.org'} Wiki
%li
#container{'class': 'column grid_10'}
{% block content %}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment