Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

Commit

Permalink
Use haml instead of erb for index
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Dec 17, 2013
1 parent 826c42b commit 86b41d0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 32 deletions.
1 change: 0 additions & 1 deletion config.ru
Expand Up @@ -5,7 +5,6 @@ run Opal::Server.new { |s|
s.append_path 'app'
s.append_path 'vendor'

s.index_path = 'index.html.erb'
s.debug = true
s.main = 'application'
}
31 changes: 0 additions & 31 deletions index.html.erb

This file was deleted.

27 changes: 27 additions & 0 deletions index.html.haml
@@ -0,0 +1,27 @@
!!!
%html(lang="en")
%head
%meta(charset="utf-8")
%meta(http-equiv="X-UA-Compatible" content="IE=edge,chrome=1")

%link(rel="stylesheet" href="/vendor/base.css")
= javascript_include_tag 'application'

%body
%section#todoapp
%header#header
%h1 Todos
%input#new-todo(placeholder="What needs to be done?" autofocus)

%section#main
%input#toggle-all(type="checkbox")
%label(for="toggle-all") Mark all as complete
%ul#todo-list

%footer#footer

#info
%p Double-click to edit a todo
%p
Part of
%a(href="http://todomvc.com") TodoMVC

0 comments on commit 86b41d0

Please sign in to comment.