Permalink
Browse files

jvortmann: using locals instead of class variable.

  • Loading branch information...
1 parent 99f30fe commit 3d7463c966aef52153e8b16719ca29751a32fbd5 @jvortmann jvortmann committed Mar 30, 2012
Showing with 3 additions and 4 deletions.
  1. +1 −2 easy_retro.rb
  2. +2 −2 views/board.slim
View
@@ -19,8 +19,7 @@ class EasyRetroApp < Sinatra::Base
get '/' do
content_type :html
- @board_name = "demo"
- slim :board
+ slim :board, :locals => { :board_name => "demo" }
end
post '/board' do
View
@@ -2,9 +2,9 @@ doctype html
html
head
link rel="stylesheet" href="stylesheets/easy_retro.css" type="text/css"
- title Easy-Retro: #{@board_name}
+ title Easy-Retro: #{board_name}
javascript:
- var boardName = "#{@board_name}";
+ var boardName = "#{board_name}";
script{type="text/javascript" data-main="javascripts/main" src="javascripts/require.js"}
body
a href="http://github.com/thiagotnunes/easy-retro"

0 comments on commit 3d7463c

Please sign in to comment.