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'
|
||||
|
||||
use Rack::CommonLogger
|
||||
use Rack::Static, :urls => ['/public']
|
||||
run Rack::URLMap.new({
|
||||
'/' => Blog,
|
||||
'/admin' => Admin
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -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')"
|
||||
|
|
Loading…
Reference in New Issue