forked from Bailador/Bailador
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load templates relatively to the script location
- Loading branch information
Tadeusz Sośnierz
committed
Jun 22, 2012
1 parent
675b0bb
commit 00cf63b
Showing
5 changed files
with
11 additions
and
3 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
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,9 +1,10 @@ | ||
use Test; | ||
use Bailador; | ||
Bailador::import; | ||
use Bailador::Test; | ||
|
||
plan 1; | ||
|
||
get '/' => sub { template 't/templates/simple.tt', 'bar' } | ||
get '/' => sub { template 'simple.tt', 'bar' } | ||
|
||
response-content-is 'GET', '/', "a happy bar\n"; |
File renamed without changes.