Skip to content

Commit

Permalink
changed version prob in app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tareq jobayere committed Dec 21, 2013
1 parent a98b272 commit 255d4dd
Show file tree
Hide file tree
Showing 1,739 changed files with 252,957 additions and 38 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

4 changes: 4 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ require('./config/express')(app,config,passport);
var env = new nunjucks.Environment(new nunjucks.FileSystemLoader('app/views'));
env.express(app);

// nunjucks.configure('app/views', {
// autoescape: true,
// express: app
// });


// bootstrap routes
Expand Down
8 changes: 8 additions & 0 deletions app/controllers/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
}


exports.some = function(req,res){
//res.render('inde');
//console.log(working);
res.render('index.html');
}



exports.faruk = function(req,res){
res.render('home.html',{data:'tumi janle na faruk'});

Expand Down
13 changes: 9 additions & 4 deletions app/views/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@

{% block content %}
<h1>Home page</h1>
<pre>
{{user}}



{{data}}
{% for post in posts %}
<h4> {{post.title}} </h4>

<br>

{{post.body}}

{% endfor %}

</pre>



Expand Down
36 changes: 6 additions & 30 deletions app/views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,13 @@


{% block content %}
<h1>All Users</h1>

<table class="table table-hover">
<thead>
<tr>
<th>#</th>
<th> Name</th>
<th> Email</th>
<th> Age</th>
</tr>
</thead>


<tbody>

{% for user in users %}


<tr>
<td></td>
<td><a href="/users/{{ user.name }}">{{ user.name }}</a></td>
<td>{{user.email }}</td>
<td>{{user.age}} </td>
</tr>


{% endfor %}

</tbody>
</table>
<center> <img src="/img/wolverine.jpg" style="width:800px;">
<h1>Index</h1>
<p class="important">
Welcome to the wolverine js

</p>
</center>
{% endblock %}


4 changes: 3 additions & 1 deletion config/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

module.exports = function(app,cont,passport){

app.get('/',cont.signup.index);
//app.get('/',cont.signup.index);

app.get('/',cont.home.some);
app.get('/signup',cont.signup.index);
app.get('/hello',cont.great.something);
app.get('/home',cont.home.index);
Expand Down
1 change: 1 addition & 0 deletions node_modules/.bin/express

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/nodemon

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/nunjucks-precompile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions node_modules/connect-flash/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions node_modules/connect-flash/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 73 additions & 0 deletions node_modules/connect-flash/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 82 additions & 0 deletions node_modules/connect-flash/lib/flash.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions node_modules/connect-flash/lib/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions node_modules/connect-flash/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions node_modules/connect-mongo/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 255d4dd

Please sign in to comment.