This file contains hidden or 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> | |
| <body> | |
| <form name="input" action="/submit/form" method="post"> | |
| First name: <input type="text" name="FirstName" /><br /> | |
| Last name: <input type="text" name="LastName" /><br /> | |
| Password : <input type="password" name="password"/><br /> | |
| <input type="submit" value="Submit" /> | |
| </form> |
This file contains hidden or 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 | |
| body | |
| form(name="input", action="/submit/form", method="post") | |
| input(type="text", name="FirstName") First Name | |
| input(type="text", name="LastName") Last Name | |
| input(type="password", name="password") Password | |
| input(type="submit", value="submit") |
This file contains hidden or 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
| div.topbar | |
| div.fill | |
| div.container | |
| a.brand(href='#') #{title} | |
| ul.nav | |
| li.active | |
| a(href='#') Home | |
| li | |
| a(href='#about') About | |
| li |
This file contains hidden or 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 | |
| title= title | |
| link(rel='stylesheet', href='/lib/bootstrap/bootstrap.min.css') | |
| link(rel='stylesheet', href='/stylesheets/custom.css') | |
| body!= body | |
This file contains hidden or 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
| div.container | |
| div.content | |
| div.page-header | |
| h1 Main Page | |
| small Welcome to #{title} | |
| div.row | |
| div.span10 | |
| h2 Page Content | |
| div.span4 | |
| h3 Secondary Content |
This file contains hidden or 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
| body | |
| include topbar | |
| div.container | |
| div.content | |
| div.page-header | |
| h1 Main Page | |
| small Welcome to #{title} | |
| div.row-fluid | |
| div.span9 | |
| div.hero-unit |
This file contains hidden or 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
| $('#signup-modal').modal({ | |
| backdrop:'static', | |
| keyboard: 'true' | |
| }); | |
| $('#signup-modal').modal('toggle'); |
This file contains hidden or 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 | |
| title= title | |
| link(rel='stylesheet', href='/stylesheets/bootstrap/bootstrap.min.css') | |
| link(rel='stylesheet', href='/stylesheets/bootstrap/bootstrap-responsive.min.css') | |
| link(rel='stylesheet', href='/stylesheets/custom.css') | |
| script(type='text/javascript', src='/js/lib/jquery/jquery-1.7.1.js') | |
| script(type='text/javascript', src='/js/lib/bootstrap/bootstrap-modal.js') |
This file contains hidden or 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
| app.post('/login', function(req, res){ | |
| logger.log('Serving request for url [POST] ' + req.route.path); | |
| var username = req.body.User; | |
| var password = req.body.Password; | |
| /** | |
| * The following can be replaced by any other form | |
| * of authentication | |
| */ | |
| User.validateUser(username, password, function(err, user){ |
This file contains hidden or 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
| req.session.user = user; |
OlderNewer