Permalink
Browse files

added with statement to date example, to show harmless DSL style.

  • Loading branch information...
1 parent 12e008f commit 55774662627410252b0ba228e218e3072c98924d @jed committed Apr 22, 2010
Showing with 5 additions and 7 deletions.
  1. +5 −7 examples/date.js
View
@@ -1,17 +1,15 @@
-fab = require( "../" )
+with ( fab = require( "../" ) ) module.exports = fab
-module.exports = fab
-
- ( fab.contentLength )
- ( fab.stringify )
+ ( contentLength )
+ ( stringify )
( /\/date/ )
- ( fab.tmpl )
+ ( tmpl )
( "The date is <%= this.toDateString() %>." )
()
( /\/time/ )
- ( fab.tmpl )
+ ( tmpl )
( "The time is <%= this.toTimeString() %>." )
()

0 comments on commit 5577466

Please sign in to comment.