Added some more scaffolding to the project to get going; added Foundation css to start with styles
This commit is contained in:
		| @@ -1,6 +1,9 @@ | ||||
| class GameData < Sinatra::Base | ||||
|   get '/' do | ||||
|     return 'Test.' | ||||
|     erb :'index/index', locals: { | ||||
|       title: 'Test!!!', | ||||
|       results: [] | ||||
|     } | ||||
|   end | ||||
|  | ||||
|   # more routes... | ||||
|   | ||||
							
								
								
									
										16
									
								
								src/server.rb
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										16
									
								
								src/server.rb
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,16 @@ | ||||
| require 'sinatra/base' | ||||
|  | ||||
| # Base app | ||||
| class GameData < Sinatra::Base | ||||
|   enable :sessions | ||||
|  | ||||
|   # Set up static file serving | ||||
|   enable :static | ||||
|   set :public_folder, File.join(__dir__, '/../public') | ||||
|  | ||||
|   # Set up our view engine | ||||
|   set :views, File.join(settings.root, '/../views') | ||||
| end | ||||
|  | ||||
| # Load routes | ||||
| require_relative 'routes/init' | ||||
		Reference in New Issue
	
	Block a user