added javascript support
This commit is contained in:
parent
fb24f5cd85
commit
dfa2f62101
|
@ -2,6 +2,7 @@ $LOAD_PATH << File.expand_path(File.dirname(__FILE__)) + '/'
|
||||||
require 'libs'
|
require 'libs'
|
||||||
|
|
||||||
use Rack::CommonLogger
|
use Rack::CommonLogger
|
||||||
|
use Rack::Static, :urls => ['/public']
|
||||||
run Rack::URLMap.new({
|
run Rack::URLMap.new({
|
||||||
'/' => Blog,
|
'/' => Blog,
|
||||||
'/admin' => Admin
|
'/admin' => Admin
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -3,6 +3,7 @@
|
||||||
%head
|
%head
|
||||||
%title="zero-knowledge"
|
%title="zero-knowledge"
|
||||||
%link{:rel => 'stylesheet', :href => '/stylesheet.css', :type => 'text/css'}
|
%link{:rel => 'stylesheet', :href => '/stylesheet.css', :type => 'text/css'}
|
||||||
|
%script{:src => 'public/head.min.js'}
|
||||||
%body
|
%body
|
||||||
%header#header
|
%header#header
|
||||||
%h1="zero-knowledge.org"
|
%h1="zero-knowledge.org"
|
||||||
|
@ -10,3 +11,5 @@
|
||||||
%p.hint= link_to('Adminpanel', '/admin')
|
%p.hint= link_to('Adminpanel', '/admin')
|
||||||
=yield
|
=yield
|
||||||
%footer#footer="ein footer"
|
%footer#footer="ein footer"
|
||||||
|
%script
|
||||||
|
="head.js('http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js', '/public/app.js')"
|
||||||
|
|
Loading…
Reference in New Issue