forked from totaljs/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a855343
commit f7f28ee
Showing
56 changed files
with
38 additions
and
300 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,9 @@ | |
</head> | ||
<body> | ||
|
||
@{!model.join('<br />')} | ||
@{foreach m in model} | ||
<div>@{m}</div> | ||
@{end} | ||
|
||
</body> | ||
</html> |
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 | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ | |
{"id":1,"email":"[email protected]","ip":"127.0.0.1","date":"2013-12-27T22:33:40.839Z"} | ||
{"id":1,"email":"[email protected]","ip":"127.0.0.1","date":"2013-12-27T22:34:38.823Z"} | ||
{"id":1,"email":"[email protected]","ip":"127.0.0.1","date":"2014-03-02T08:10:29.987Z"} | ||
{"id":1,"email":"[email protected]","ip":"127.0.0.1","date":"2014-05-29T06:01:40.119Z"} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
@#auto-vendor-prefix#@ | ||
|
||
.grid{width:100%;border:1px solid #E0E0E0;border-right:0;border-bottom:0;font:normal 11px Arial;color:gray}.grid td{border:1px solid #E0E0E0;border-left:0;border-top:0;padding:5px 8px} |
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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# E-mail templating | ||
|
||
Example: <https://github.com/totaljs/examples/tree/master/controller-mail> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ function plain_homepage() { | |
var self = this; | ||
|
||
// send test request to /order/ | ||
utils.request(self.host('/order/'), 'POST', 'firstname=Peter&lastname=Sirka&email=[email protected]&telephone=0903163302&address=&inject=1&inject=2¶m=custom'); | ||
utils.request(self.host('/order/'), ['post'], { firstname: 'Peter', lastname: 'Sirka', email: '[email protected]', telephone: '0903163302', address: '', inject1: '', inject2: '', param: 'custom' }); | ||
|
||
self.plain('Show node.js console'); | ||
} | ||
|
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 | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ function plain_homepage() { | |
var self = this; | ||
|
||
// send test request to /order/ | ||
utils.request(self.host('/order/'), 'POST', 'firstname=Peter&lastname=Sirka&email=[email protected]&telephone=0903163302&address=&inject=1&inject=2¶m=custom'); | ||
utils.request(self.host('/order/'), ['post'], { firstname: 'Peter', lastname: 'Sirka', email: '[email protected]', telephone: '0903163302', address: '', inject1: '', inject2: '', param: 'custom' }); | ||
|
||
self.plain('Show node.js console'); | ||
} | ||
|
File renamed without changes.
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<ul> | ||
<!-- | ||
<li><a href="{url}">{name}</a></li> | ||
--> | ||
@{foreach} | ||
<li><a href="@{model.url}">@{model.name}</a></li> | ||
@{end} | ||
</ul> |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="mb5">Paging:</div> | ||
<div class="paging"> | ||
<!-- | ||
<a href="@{model.url}">@{model.page}</a> | ||
--> | ||
@{foreach} | ||
<a href="@{model.url}">@{model.page}</a> | ||
@{end} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<div class="mb5">Paging @{repository.page}/@{repository.count}:</div> | ||
<div class="paging"> | ||
<!-- | ||
<a href="@{model.url}"@{if model.selected} class="selected"@{endif}>@{model.page}</a> | ||
--> | ||
@{foreach m in model} | ||
<a href="@{m.url}"@{if m.selected} class="selected"@{endif}>@{m.page}</a> | ||
@{end} | ||
<div>@{repository.items.format('### ###')} items</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@{template('paging1', model.render(), model)} | ||
@{template('paging1', model.render())} | ||
|
||
<hr /> | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.