Permalink
Browse files

DSL structure

  • Loading branch information...
1 parent a3a7f81 commit 5b91c07e713bf51139a1a219658ee5745896ea2e @peteog committed Dec 15, 2011
Showing with 17 additions and 0 deletions.
  1. +17 −0 lib/sinatra/simple_assets.rb
@@ -3,5 +3,22 @@
module Sinatra
module SimpleAssets
VERSION = '0.0.1'
+
+ class Assets
+ def initialize(app, &block)
+ @app = app
+ instance_eval(&block)
+ end
+
+ def css(name, files)
+ end
+
+ def js(name, files)
+ end
+ end
+
+ def assets(&block)
+ @assets ||= Assets.new(self, &block)
+ end
end
end

0 comments on commit 5b91c07

Please sign in to comment.