Skip to content

Instantly share code, notes, and snippets.

@EvanZ
Created December 10, 2012 23:39
Show Gist options
  • Save EvanZ/4254372 to your computer and use it in GitHub Desktop.
Save EvanZ/4254372 to your computer and use it in GitHub Desktop.
jade template
extends layout
block content
div.hero-unit
h1 #{shots[0].for}
div.row
div.span2.offset1
svg(width=600,height=600)
each shot in shots
if (shot.made)
circle(cx="#{(shot.coords.x+25)*10}",cy="#{shot.coords.y*10}",r="3",fill="green",stroke="black")
else
circle(cx="#{(shot.coords.x+25)*10}",cy="#{shot.coords.y*10}",r="3",fill="red",stroke="black")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment