Skip to content

Commit

Permalink
moving back to haml and adding jquery
Browse files Browse the repository at this point in the history
  • Loading branch information
gnugeek committed Dec 26, 2008
1 parent eda3d0b commit d643f8b
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 45 deletions.
32 changes: 32 additions & 0 deletions jquery.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions main.rb
@@ -1,7 +1,7 @@
require 'init.rb'

get '/' do
erb :index
haml :index
end

post '/' do
Expand All @@ -10,7 +10,7 @@

get '/word/:lemma' do
@word = Word.first(:lemma => params[:lemma])
erb :word
haml :word
end

get '/stylesheets/style.css' do
Expand Down
14 changes: 0 additions & 14 deletions views/index.erb

This file was deleted.

15 changes: 15 additions & 0 deletions views/index.haml
@@ -0,0 +1,15 @@
#content
.intro
Welcome to Wordnatra.
%br
To get started, search for a word.
%br
For information on this project, see the following:
.links
%ul
%li =link_to 'Wordnatra', 'http://github.com/gnugeek/wordnatra/tree/master'
%li =link_to 'Wordnet', 'http://wordnet.princeton.edu/'
%li =link_to 'Ruby', 'http://www.ruby-lang.org/'
%li =link_to 'MySQL', 'http://www.mysql.com'
%li =link_to 'Sinatra', 'http://sinatra.rubyforge.org/'
%li =link_to 'DataMapper', 'http://datamapper.org/doku.php'
18 changes: 0 additions & 18 deletions views/layout.erb

This file was deleted.

15 changes: 15 additions & 0 deletions views/layout.haml
@@ -0,0 +1,15 @@
!!!
%html{:lang => "en"}
%head
%title Wordnatra
%link{:rel=>'stylesheet', :href=>'/stylesheets/style.css', :type => "text/css"}
%script{:type=>'text/javascript', :src=>'jquery.js'}
%body
#banner Wordnatra

#wordnet-search
%form{:method => 'post'}
%input{:type=>'text', :size=>40, :name=>'lemma', :id=>'lemma_search'}
%input{:type =>'submit', :value=>'word'}

=yield
11 changes: 0 additions & 11 deletions views/word.erb

This file was deleted.

7 changes: 7 additions & 0 deletions views/word.haml
@@ -0,0 +1,7 @@
%table.results{:summary=>"Wordnet search results for word #{@word.lemma}"}
%tr
%th wordid
%td= @word.wordid
%tr
%th lemma
%td= @word.lemma

0 comments on commit d643f8b

Please sign in to comment.