first post

This commit is contained in:
2012-05-25 09:03:56 -04:00
commit 6a753904b7
609 changed files with 252648 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
#footer
div Copyright © Ninja Store #{+new Date().getFullYear()}
a(href='/page?name=about') About
| |
a(href='/page?name=contact') Contact Us

View File

@@ -0,0 +1,13 @@
#container
#logo
a(href='/')
img(src='/images/logo.png')
#display
#login
form(method='post')
| Enter your name if you want to be a ninja
div
input(type='text', name='username')
input(type='submit', value='Log In')
include footer

View File

@@ -0,0 +1,2 @@
h1= title
p Welcome to #{title}

View File

@@ -0,0 +1,10 @@
#container
#logo
img(src='/images/logo.png')
#display
include userbar
p The #{name.toLowerCase()} is one of the must-have items for any aspiring ninja. It costs just $#{price} on our store.
p Buy it today!
include footer

View File

@@ -0,0 +1,12 @@
#container
#logo
img(src='/images/logo.png')
#display
include userbar
-for (var id in items)
- var item = items[id]
div
a(href='/item/#{id}') #{item.name} - $#{item.price}
include footer

View File

@@ -0,0 +1,8 @@
!!!
html
head
title= title
link(rel='stylesheet', href='/stylesheets/style.css')
<script src="http://localhost:3000/socket.io/socket.io.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
body!= body

View File

@@ -0,0 +1,8 @@
#container
#logo
a(href='/')
img(src='/images/logo.png')
#display
p!= content
include footer

View File

@@ -0,0 +1,5 @@
#userbar
| Welcome #{username} |
a(href='/items') Items
| |
a(href='/logout') Log Out