0
0
Fork 0

added javascript support

This commit is contained in:
Gibheer 2011-06-25 07:33:58 +02:00
parent fb24f5cd85
commit dfa2f62101
4 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,7 @@ $LOAD_PATH << File.expand_path(File.dirname(__FILE__)) + '/'
require 'libs'
use Rack::CommonLogger
use Rack::Static, :urls => ['/public']
run Rack::URLMap.new({
'/' => Blog,
'/admin' => Admin

0
public/app.js Normal file
View File

8
public/head.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@
%head
%title="zero-knowledge"
%link{:rel => 'stylesheet', :href => '/stylesheet.css', :type => 'text/css'}
%script{:src => 'public/head.min.js'}
%body
%header#header
%h1="zero-knowledge.org"
@ -10,3 +11,5 @@
%p.hint= link_to('Adminpanel', '/admin')
=yield
%footer#footer="ein footer"
%script
="head.js('http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js', '/public/app.js')"