1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Added config file system.

This commit is contained in:
Dan Barber 2011-10-11 12:28:33 +01:00
parent 5ea9ff0f75
commit 3be7b82af8
7 changed files with 15 additions and 17 deletions

View File

@ -1,7 +1,7 @@
!!!
%html
%head
%title Pixelhum Admin
%title= "#{APP_CONFIG['name']} Admin"
= stylesheet_link_tag "admin"
= javascript_include_tag "admin"
= csrf_meta_tag

View File

@ -1,7 +1,7 @@
!!!
%html
%head
%title Pixelhum Admin
%title= "#{APP_CONFIG['name']} Admin"
= stylesheet_link_tag "admin"
= javascript_include_tag "admin"
= csrf_meta_tag

View File

@ -1 +1 @@
%h1 Template App
%h1= APP_CONFIG['name']

View File

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>Abidownloads</title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>
</html>

View File

@ -0,0 +1,9 @@
!!!
%html
%head
%title= APP_CONFIG['name']
= stylesheet_link_tag "application"
= javascript_include_tag "application"
= csrf_meta_tags
%body
= yield

1
config/config.yml Normal file
View File

@ -0,0 +1 @@
name: Pixelhum

View File

@ -0,0 +1,2 @@
# Load the app config from the config.yml file.
APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")