forked from geddy/geddy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added custom templates in
lib/template/templates/
, these templates …
…handle special cases like empty layouts, etc. Made it so controller.respond's options are more consistent, and added more stability for different path cases. ex: this.respond(params, {template: 'index'}) // Takes current controller ex: this.respond(params, {template: 'app/views/main/index'}) ex: this.respond(params, {template: 'main.index'}) All the above examples also apply to `layout` option. Fixed a bug where the options object is a string and sets as the response type. Now setting the `layout` option to false will respond with only the template
- Loading branch information
1 parent
16f960f
commit 018c001
Showing
3 changed files
with
106 additions
and
38 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
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 @@ | ||
<%- yield(); %> |