Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created Jade engine wrapper that mimics the layout for ejs, and vario…
…us other changes/improvements
- Loading branch information
1 parent
884d921
commit 6f27387
Showing
12 changed files
with
684 additions
and
496 deletions.
There are no files selected for viewing
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
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,4 @@ | |||
extends layout | extends ../layouts/application.html | ||
|
|
||
.hero-unit= partial('_form', {params: params, todo: todo}) | block content | ||
.hero-unit= partial('_form', {params: params, todo: todo}) |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,4 @@ | |||
extends layout | extends ../layouts/application.html | ||
|
|
||
.hero-unit= partial('_form', {params: params, todo: todo}) | block content | ||
.hero-unit= partial('_form', {params: params, todo: todo}) |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,16 +1,18 @@ | |||
extends layout | extends ../layouts/application.html | ||
|
|
||
.hero-unit | block content | ||
h2 To Do List | .hero-unit | ||
a.btn.pull-right(href="/todos/add") Create a new To Do | h2 To Do List | ||
a.btn.pull-right(href="/todos/add") Create a new To Do | |||
|
|
||
- if (todos && todos.length) | //-Currently commented out so I can test rendering | ||
- for (var i in todos) | - if (todos && todos.length) | ||
.row.todo-item | - for (var i in todos) | ||
.span8 | .row.todo-item | ||
h3 | .span8 | ||
a(href="/todos/" + todos[i].id + "/edit")= todos[i].title | h3 | ||
.span4 | a(href="/todos/" + todos[i].id + "/edit")= todos[i].title | ||
h3= | .span4 | ||
i.icon-list-alt | h3= | ||
todos[i].status | i.icon-list-alt | ||
todos[i].status |
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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,7 +1,8 @@ | |||
extends layout | extends ../layouts/application.html | ||
|
|
||
.hero-unit | block content | ||
h3 Params | .hero-unit | ||
ul | h3 Params | ||
- for (var p in params) | ul | ||
li= p + ': ' + params[p] | - for (var p in params) | ||
li= p + ': ' + params[p] |
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
Oops, something went wrong.