lion 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.DS_Store CHANGED
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module Lion
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
Binary file
@@ -1,5 +1,5 @@
1
1
  require 'rubygems'
2
- require 'slim'
2
+ require 'haml'
3
3
  require './lion'
4
4
 
5
5
  run Lion
@@ -2,5 +2,6 @@ source "http://rubygems.org"
2
2
 
3
3
  gem "sinatra", :require => "sinatra/base"
4
4
  gem 'coffee-script'
5
+ gem 'haml'
5
6
  gem "sass"
6
7
  gem "join"
@@ -5,7 +5,6 @@ class Lion < Sinatra::Base
5
5
  configure do
6
6
  set :views, "./views"
7
7
  set :public, "./public"
8
- set :slim, :pretty => true
9
8
  set :port, 4000
10
9
  set :run, true
11
10
  set :static, true
@@ -16,19 +15,17 @@ class Lion < Sinatra::Base
16
15
  end
17
16
 
18
17
  @pages = []
19
- @template = slim
20
-
21
- Dir['./views/*.slim'].each do |template|
18
+ Dir['./views/*.haml'].each do |template|
22
19
  @pages << File.basename(template).chomp(File.extname(template) )
23
20
  end
24
21
 
25
22
  get '/' do
26
- slim :index
23
+ haml :index
27
24
  end
28
25
 
29
26
  @pages.each do |page|
30
27
  get '/' + page do
31
- slim page
28
+ haml page
32
29
  end
33
30
  end
34
31
 
Binary file
@@ -0,0 +1 @@
1
+ %p Welcome
@@ -0,0 +1,18 @@
1
+ !!!5
2
+ %html(class="no-js" lang="en")
3
+ %head
4
+ %meta(charset="utf-8")
5
+ %title="Project Title"
6
+ %meta(content="" name="description")
7
+ %meta(content="" name="author")
8
+ %script(src="http://html5shim.googlecode.com/svn/trunk/html5.js")
9
+ %meta(name="viewport" content="width=(device-width; initial-scale=1.0;)maximum-scale=1.0;")
10
+ %link(rel="stylesheet" href="public/stylesheets/css/style.css" type="text/css")
11
+
12
+ %body
13
+ .container
14
+ %h1.center Lion
15
+ == yield
16
+
17
+ %script(src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js")
18
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lion
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-08-29 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sinatra
16
- requirement: &2157533060 !ruby/object:Gem::Requirement
16
+ requirement: &2157531340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2157533060
24
+ version_requirements: *2157531340
25
25
  description: A sinatra based front end framework
26
26
  email:
27
27
  - owain@owainlewis.com
@@ -103,8 +103,8 @@ files:
103
103
  - lib/src/public/stylesheets/scss/style.scss
104
104
  - lib/src/rakefile
105
105
  - lib/src/views/.DS_Store
106
- - lib/src/views/index.slim
107
- - lib/src/views/layout.slim
106
+ - lib/src/views/index.haml
107
+ - lib/src/views/layout.haml
108
108
  - lion.gemspec
109
109
  - readme.md
110
110
  - todo.txt
@@ -1,2 +0,0 @@
1
- h1 Welcome to Lion
2
- p Lion is a small Ruby framework built on top of Rack and Sinatra
@@ -1,23 +0,0 @@
1
- doctype 5
2
- html class="no-js" lang="en"
3
- head
4
- meta charset="utf-8"
5
- title="Project Title"
6
- meta content="" name="description"
7
- meta content="" name="author"
8
- script src="http://html5shim.googlecode.com/svn/trunk/html5.js"
9
-
10
- | <!-- Mobile Specific Meta Tags -->
11
- meta name="viewport" content="width=(device-width; initial-scale=1.0;)maximum-scale=1.0;"
12
-
13
- | <!-- CSS -->
14
- link rel="stylesheet" href="/stylesheets/css/style.css" type="text/css"
15
-
16
- body
17
- .container
18
- == yield
19
-
20
- script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"
21
- script src="http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.6/underscore-min.js"
22
- script src="http://ajax.cdnjs.com/ajax/libs/backbone.js/0.3.3/backbone-min.js"
23
- script src="javascripts/application.js"