Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct some types, implemented help file, and started documentation
- Loading branch information
Edward de Groot
committed
Jul 14, 2011
1 parent
a78f944
commit abeda09
Showing
7 changed files
with
114 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
.git* | ||
.git* | ||
*.log |
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
doctype 5 | ||
html -> | ||
head -> | ||
title 'Timbits - Examples' | ||
body -> | ||
h1 'Timbits - Examples' | ||
|
||
h2 'Plain Timbit' | ||
|
||
p 'Example of the simplest timbit that could possibly be created. | ||
This timbit will simply render a view using data from the querystring.' | ||
|
||
ul -> | ||
(li -> a href: '/plain', -> '/plain') | ||
(li -> a href: '/plain?who=World', -> '/plain?who=World') | ||
|
||
h2 'Cherry Timbit' | ||
|
||
p 'Example of a timbit which actually does something. | ||
This timbit will display the current server time.' | ||
|
||
ul -> | ||
(li -> a href: '/cherry', -> '/cherry') | ||
|
||
h2 'Chocolate Timbit' | ||
|
||
p 'Example of a timbit which transforms remote data. | ||
This timbit will query twitter and display the results. | ||
There are two views available, the default and the alternate.' | ||
|
||
ul -> | ||
(li -> a href: '/chocolate', -> '/chocolate') | ||
(li -> a href: '/chocolate?q=coffeescript', -> '/chocolate?q=coffeescript') | ||
(li -> a href: '/chocolate/alternate?q=coffeescript', -> '/chocolate/alternate?q=coffeescript') | ||
|
||
h2 'Dutchie Timbit' | ||
|
||
p 'Similar (in function, not taste) to the chocolate timbit | ||
This timbit displays some more advanced features such as | ||
specifing a custom route and overiding the render implementation | ||
with custom code (just because)' | ||
|
||
ul -> | ||
(li -> a href: '/dutchie', -> '/dutchie') | ||
(li -> a href: '/dutchie/nodejs', -> '/dutchie/nodejs') | ||
(li -> a href: '/dutchie/nodejs/alternate', -> '/dutchie/nodejs/alternate') | ||
|
||
h2 'Story Timbit' | ||
|
||
p 'Our prototype of a "real world" widget. | ||
This one will retrieve and display a story from our CMS (SouthPARC)' | ||
|
||
ul -> | ||
(li -> a href: '/story/5102148', -> '/story/5102148') | ||
(li -> a href: '/story/5089233', -> '/story/5089233') | ||
|
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