This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form id="form" name="form" method="post" action="/signin"> | |
<h1>Sign-in form</h1> | |
<div><label>Username | |
</label> | |
<input type="text" name="user[username]" class="required" id="username"/></div> | |
<div> | |
<input type="password" name="user[password]" class="required" id="password"/></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="dust-full-0.3.0.min.js"></script> | |
<script type="text/javascript"> | |
//example showing client-side compiling and rendering | |
var compiled = dust.compile("Hello {name}!", "index"); | |
dust.loadSource(compiled); | |
dust.render("index", {name: "David"}, function(err, out) { | |
if(err != null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script src="dust-full-0.3.0.min.js"></script> | |
<script type="text/javascript"> | |
//example showing client-side compiling and rendering | |
var compiled = dust.compile("Hello {name}!", "index"); | |
dust.loadSource(compiled); | |
dust.render("index", {name: "David"}, function(err, out) { | |
if(err!= null) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{?username} | |
{username} | |
{:else} | |
Please Log-In! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Module dependencies. | |
var express = require('express') | |
, routes = require('./routes') | |
, http = require('http') | |
, fs = require('fs') | |
, path = require('path') | |
, cons = require('consolidate') | |
var app = express(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>{+title}7th-Degree{/title}</title> | |
<script type="text/javascript" src='/javascripts/utils.js'></script> | |
<link rel="stylesheet" type="text/css" href="/stylesheets/style.css"> | |
{+http_header/} | |
</head> | |
<body> | |
<div id="wrapper"> |
NewerOlder