-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.rb
47 lines (38 loc) · 979 Bytes
/
app.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
require 'rubygems'
require 'bundler'
Bundler.setup(:default)
require 'sinatra/base'
module CMS
class Installer < Sinatra::Base
require 'haml'
require 'coffee-script'
require 'sass'
require 'compass'
configure do
set :views, File.dirname(__FILE__) + '/views/admin'
Compass.configuration do |config|
config.project_path = File.dirname(__FILE__)
config.sass_dir = 'views/admin/stylesheets'
end
set :haml, :format => :html5
set :scss, Compass.sass_engine_options
end
### Prove Sass works ###
get '/admin.css' do
scss :admin
end
### Prove CoffeeScript works ###
get '/application.js' do
coffee :application
end
### Pass a test ###
get '/install' do
'Install: Step 1/3 <input id="environment" type="text"></input><input id="domain_name" type="text"></input>'
end
end
class Admin < Sinatra::Base
get '/admin' do
"admin"
end
end
end