Permalink
Browse files

code example

  • Loading branch information...
tj committed Apr 14, 2012
1 parent 6db1914 commit 8e3841ee74dae95aaef27bf435f63d7dee343611
Showing with 20 additions and 0 deletions.
  1. +20 −0 examples/code.md
View
@@ -0,0 +1,20 @@
+
+# Jade
+
+ Some jade examples with code snippets.
+
+## Conditionals
+
+ Conditionals using `if`:
+
+ if user.authenticated
+ a(href='/account') Account
+ a(href='/logout') Sign out
+ else
+ a(href='/login') Login
+
+ Conditionals using `unless`:
+
+ unless user.authenticated
+ a(href='/login') Login
+

0 comments on commit 8e3841e

Please sign in to comment.