Permalink
Browse files

initial commit

  • Loading branch information...
rkh committed May 2, 2011
0 parents commit 528aca27575688f2c1060b62da19543d3abc3074
Showing with 652 additions and 0 deletions.
  1. +3 −0 README.md
  2. +5 −0 example.fy
  3. +212 −0 example.fyc
  4. +11 −0 lib/sinatra.fy
  5. +348 −0 lib/sinatra.fyc
  6. +64 −0 lib/sinatra/delegator.rb
  7. +9 −0 sinatra.fy.fancypack
@@ -0,0 +1,3 @@
+Run example app:
+
+ fancy -I lib example.fy
@@ -0,0 +1,5 @@
+require: "sinatra"
+
+configure: {
+ enable: 'sessions
+}
@@ -0,0 +1,212 @@
+!RBIX
+10310238139619683799
+x
+M
+1
+n
+n
+x
+10
+__script__
+i
+33
+45
+0
+1
+43
+2
+7
+3
+64
+49
+4
+1
+15
+5
+56
+5
+47
+49
+6
+1
+15
+5
+7
+7
+64
+56
+8
+47
+50
+9
+1
+15
+2
+11
+I
+3
+I
+0
+I
+0
+I
+0
+n
+p
+10
+x
+5
+Fancy
+n
+x
+10
+CodeLoader
+s
+7
+sinatra
+x
+8
+require:
+M
+1
+p
+2
+x
+9
+for_block
+t
+n
+x
+9
+__block__
+i
+8
+5
+7
+0
+47
+49
+1
+1
+11
+I
+3
+I
+0
+I
+0
+I
+0
+n
+p
+2
+x
+8
+sessions
+x
+7
+enable:
+p
+7
+I
+0
+I
+5
+I
+1
+I
+4
+I
+3
+I
+5
+I
+8
+x
+49
+/Users/konstantin/Workspace/sinatra.fy/example.fy
+p
+0
+x
+10
+configure:
+s
+1
+/
+M
+1
+p
+2
+x
+9
+for_block
+t
+n
+x
+9
+__block__
+i
+4
+7
+0
+64
+11
+I
+2
+I
+0
+I
+0
+I
+0
+n
+p
+1
+s
+5
+hello
+p
+3
+I
+0
+I
+7
+I
+4
+x
+49
+/Users/konstantin/Workspace/sinatra.fy/example.fy
+p
+0
+x
+3
+get
+p
+11
+I
+0
+I
+1
+I
+c
+I
+6
+I
+d
+I
+5
+I
+f
+I
+6
+I
+14
+I
+7
+I
+21
+x
+49
+/Users/konstantin/Workspace/sinatra.fy/example.fy
+p
+0
@@ -0,0 +1,11 @@
+require(File expand_path("../sinatra/delegator", __FILE__))
+require("sinatra")
+
+Sinatra Base metaclass class_eval() {
+ alias_method('enable:, 'enable)
+ alias_method('configure:, 'configure)
+ alias_method('configure:with:, 'configure)
+}
+
+Sinatra Delegator delegate('enable:, 'configure:, 'configure:with:)
+Sinatra Application enable: 'run
Oops, something went wrong.

0 comments on commit 528aca2

Please sign in to comment.