Skip to content
Browse files

Use Slim instead of ERB.

  • Loading branch information...
1 parent 48131c4 commit 36be2a90ab4a89528d8850ee19391fbb418514d4 @booch committed Jan 22, 2013
View
3 Gemfile
@@ -5,6 +5,7 @@ gem 'rails', '~> 3.2.8'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
+ gem 'slim-rails', '~> 1.1'
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
@@ -21,4 +22,4 @@ gem 'jquery_mobile_rails', git: 'git://github.com/tscolari/jquery-mobile-rails.g
# gem 'unicorn'
# To use debugger
-gem 'debugger'
+#gem 'debugger'
View
19 Gemfile.lock
@@ -45,14 +45,6 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.3.3)
- columnize (0.3.6)
- debugger (1.2.0)
- columnize (>= 0.3.1)
- debugger-linecache (~> 1.1.1)
- debugger-ruby_core_source (~> 1.1.3)
- debugger-linecache (1.1.2)
- debugger-ruby_core_source (>= 1.1.1)
- debugger-ruby_core_source (1.1.3)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
@@ -100,10 +92,19 @@ GEM
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
+ slim (1.3.6)
+ temple (~> 0.5.5)
+ tilt (~> 1.3.3)
+ slim-rails (1.1.0)
+ actionpack (>= 3.0, < 4.1)
+ activesupport (>= 3.0, < 4.1)
+ railties (>= 3.0, < 4.1)
+ slim (~> 1.3)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
+ temple (0.5.5)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.10)
@@ -119,9 +120,9 @@ PLATFORMS
DEPENDENCIES
coffee-rails (~> 3.2.1)
- debugger
jquery-rails
jquery_mobile_rails!
rails (~> 3.2.8)
sass-rails (~> 3.2.3)
+ slim-rails (~> 1.1)
uglifier (>= 1.0.3)
View
5 app/views/home/_about.html.erb
@@ -1,5 +0,0 @@
-<div id="about" data-role="dialog" data-title="About BoochReader">
- <p>BoochReader is an app designed to make it easier to keep up with reading new on the Internet.</p>
- <p>Use it to read Twitter feeds, RSS feeds, and Pocket (formerly Read It Later) articles, and keep track of what you've read.</p>
- <a data-icon="back" data-rel="back" data-role="button" href="#main">Okay</a>
-</div>
View
5 app/views/home/_about.html.slim
@@ -0,0 +1,5 @@
+div#about data-role='dialog' data-title='About BoochReader'
+ p BoochReader is an app designed to make it easier to keep up with reading new on the Internet.
+ p Use it to read Twitter feeds, RSS feeds, and Pocket (formerly Read It Later) articles, and keep track of what you've read.
+ a data-icon='back' data-rel='back' data-role='button' href='#main' Okay
+
View
13 app/views/home/_main.html.erb
@@ -1,13 +0,0 @@
-<div id="main" data-role="page" data-title="BoochReader">
- <header data-role="header">
- <h1>This app does nothing!</h1>
- </header>
-
- <div data-role="content">
- <p>But it does run on WebOS!</p>
- </div>
-
- <footer data-role="footer">
- <a href="#webos-app-menu" data-role="button">Menu</a>
- </footer>
-</div>
View
9 app/views/home/_main.html.slim
@@ -0,0 +1,9 @@
+div#main data-role='page' data-title='BoochReader'
+ header data-role='header'
+ h1 This app does nothing!
+
+ div data-role='content'
+ p But it does run on WebOS!
+
+ footer data-role='footer'
+ a href='#webos-app-menu' data-role='button' Menu
View
13 app/views/home/_preferences.html.erb
@@ -1,13 +0,0 @@
-<div id="preferences" data-role="dialog" data-title="BoochReader Preferences">
- <header data-role="header">
- <h1>Preferences</h1>
- </header>
-
- <div data-role="content">
- <p>Preferences go here</p>
- </div>
-
- <footer data-role="footer">
- <a data-rel="back" data-role="button" href="#main">Okay</a>
- </footer>
-</div>
View
9 app/views/home/_preferences.html.slim
@@ -0,0 +1,9 @@
+div#preferences data-role='dialog' data-title='BoochReader Preferences'
+ header data-role='header'
+ h1 Preferences
+
+ div data-role='content'
+ p Preferences go here
+
+ footer data-role='footer'
+ a data-rel='back' data-role='button' href='#main' Okay
View
7 app/views/home/_webos_app_menu.html.erb
@@ -1,7 +0,0 @@
-<div id="webos-app-menu" class="webos-menu" data-role="popup">
- <ul>
- <li><a href="#about" data-rel="dialog">About</a></li>
- <li><a href="#preferences" data-rel="dialog">Preferences<a/></li>
- <li><a href="#help">Help</a></li>
- </ul>
-</div>
View
8 app/views/home/_webos_app_menu.html.slim
@@ -0,0 +1,8 @@
+div#webos-app-menu.webos-menu data-role='popup'
+ ul
+ li
+ a href='#about' data-rel='dialog' About
+ li
+ a href='#preferences' data-rel='dialog' Preferences
+ li
+ a href='#help' Help
View
4 app/views/home/index.html.erb
@@ -1,4 +0,0 @@
-<%= render 'main' %>
-<%= render 'about' %>
-<%= render 'preferences' %>
-<%= render 'webos_app_menu' %>
View
4 app/views/home/index.html.slim
@@ -0,0 +1,4 @@
+= render 'main'
+= render 'about'
+= render 'preferences'
+= render 'webos_app_menu'

0 comments on commit 36be2a9

Please sign in to comment.
Something went wrong with that request. Please try again.