install_theme 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (151) hide show
  1. data/History.txt +4 -0
  2. data/Manifest.txt +145 -0
  3. data/lib/install_theme.rb +43 -13
  4. data/spec/expected/rails/bloganje/app/views/layouts/application.html.haml +90 -0
  5. data/spec/expected/rails/bloganje/public/stylesheets/ie-sucks.css +140 -21
  6. data/spec/expected/rails/bloganje/public/stylesheets/sass/style.sass +479 -0
  7. data/spec/expected/rails/djclub/README +243 -0
  8. data/spec/expected/rails/djclub/Rakefile +10 -0
  9. data/spec/expected/rails/djclub/app/controllers/application_controller.rb +10 -0
  10. data/spec/expected/rails/djclub/app/helpers/application_helper.rb +3 -0
  11. data/spec/expected/rails/djclub/app/views/layouts/application.html.erb +19 -0
  12. data/spec/expected/rails/djclub/config/boot.rb +110 -0
  13. data/spec/expected/rails/djclub/config/database.yml +22 -0
  14. data/spec/expected/rails/djclub/config/environment.rb +41 -0
  15. data/spec/expected/rails/djclub/config/environments/development.rb +17 -0
  16. data/spec/expected/rails/djclub/config/environments/production.rb +28 -0
  17. data/spec/expected/rails/djclub/config/environments/test.rb +28 -0
  18. data/spec/expected/rails/djclub/config/initializers/backtrace_silencers.rb +7 -0
  19. data/spec/expected/rails/djclub/config/initializers/inflections.rb +10 -0
  20. data/spec/expected/rails/djclub/config/initializers/mime_types.rb +5 -0
  21. data/spec/expected/rails/djclub/config/initializers/new_rails_defaults.rb +21 -0
  22. data/spec/expected/rails/djclub/config/initializers/session_store.rb +15 -0
  23. data/spec/expected/rails/djclub/config/locales/en.yml +5 -0
  24. data/spec/expected/rails/djclub/config/routes.rb +43 -0
  25. data/spec/expected/rails/djclub/db/seeds.rb +7 -0
  26. data/spec/expected/rails/djclub/doc/README_FOR_APP +2 -0
  27. data/spec/expected/rails/djclub/public/404.html +30 -0
  28. data/spec/expected/rails/djclub/public/422.html +30 -0
  29. data/spec/expected/rails/djclub/public/500.html +30 -0
  30. data/spec/expected/rails/djclub/public/favicon.ico +0 -0
  31. data/spec/expected/rails/djclub/public/images/bodybg.gif +0 -0
  32. data/spec/expected/rails/djclub/public/images/contentbg.gif +0 -0
  33. data/spec/expected/rails/djclub/public/images/djset.gif +0 -0
  34. data/spec/expected/rails/djclub/public/images/footerbg.gif +0 -0
  35. data/spec/expected/rails/djclub/public/images/header.jpg +0 -0
  36. data/spec/expected/rails/djclub/public/images/leftbg.gif +0 -0
  37. data/spec/expected/rails/djclub/public/images/middlebg.gif +0 -0
  38. data/spec/expected/rails/djclub/public/images/navbottom.gif +0 -0
  39. data/spec/expected/rails/djclub/public/images/navtop.gif +0 -0
  40. data/spec/expected/rails/djclub/public/images/photos.jpg +0 -0
  41. data/spec/expected/rails/djclub/public/images/rails.png +0 -0
  42. data/spec/expected/rails/djclub/public/images/rightbg.gif +0 -0
  43. data/spec/expected/rails/djclub/public/images/timetoparty.jpg +0 -0
  44. data/spec/expected/rails/djclub/public/index.html +275 -0
  45. data/spec/expected/rails/djclub/public/javascripts/application.js +2 -0
  46. data/spec/expected/rails/djclub/public/javascripts/controls.js +963 -0
  47. data/spec/expected/rails/djclub/public/javascripts/dragdrop.js +973 -0
  48. data/spec/expected/rails/djclub/public/javascripts/effects.js +1128 -0
  49. data/spec/expected/rails/djclub/public/javascripts/prototype.js +4320 -0
  50. data/spec/expected/rails/djclub/public/robots.txt +5 -0
  51. data/spec/expected/rails/djclub/public/stylesheets/style.css +191 -0
  52. data/spec/expected/rails/djclub/script/about +4 -0
  53. data/spec/expected/rails/djclub/script/console +3 -0
  54. data/spec/expected/rails/djclub/script/dbconsole +3 -0
  55. data/spec/expected/rails/djclub/script/destroy +3 -0
  56. data/spec/expected/rails/djclub/script/generate +3 -0
  57. data/spec/expected/rails/djclub/script/performance/benchmarker +3 -0
  58. data/spec/expected/rails/djclub/script/performance/profiler +3 -0
  59. data/spec/expected/rails/djclub/script/plugin +3 -0
  60. data/spec/expected/rails/djclub/script/runner +3 -0
  61. data/spec/expected/rails/djclub/script/server +3 -0
  62. data/spec/expected/rails/djclub/test/performance/browsing_test.rb +9 -0
  63. data/spec/expected/rails/djclub/test/test_helper.rb +38 -0
  64. data/spec/expected/rails/the-hobbit-website-template/README +243 -0
  65. data/spec/expected/rails/the-hobbit-website-template/Rakefile +10 -0
  66. data/spec/expected/rails/the-hobbit-website-template/app/controllers/application_controller.rb +10 -0
  67. data/spec/expected/rails/the-hobbit-website-template/app/helpers/application_helper.rb +3 -0
  68. data/spec/expected/rails/the-hobbit-website-template/app/views/layouts/application.html.erb +53 -0
  69. data/spec/expected/rails/the-hobbit-website-template/config/boot.rb +110 -0
  70. data/spec/expected/rails/the-hobbit-website-template/config/database.yml +22 -0
  71. data/spec/expected/rails/the-hobbit-website-template/config/environment.rb +41 -0
  72. data/spec/expected/rails/the-hobbit-website-template/config/environments/development.rb +17 -0
  73. data/spec/expected/rails/the-hobbit-website-template/config/environments/production.rb +28 -0
  74. data/spec/expected/rails/the-hobbit-website-template/config/environments/test.rb +28 -0
  75. data/spec/expected/rails/the-hobbit-website-template/config/initializers/backtrace_silencers.rb +7 -0
  76. data/spec/expected/rails/the-hobbit-website-template/config/initializers/inflections.rb +10 -0
  77. data/spec/expected/rails/the-hobbit-website-template/config/initializers/mime_types.rb +5 -0
  78. data/spec/expected/rails/the-hobbit-website-template/config/initializers/new_rails_defaults.rb +21 -0
  79. data/spec/expected/rails/the-hobbit-website-template/config/initializers/session_store.rb +15 -0
  80. data/spec/expected/rails/the-hobbit-website-template/config/locales/en.yml +5 -0
  81. data/spec/expected/rails/the-hobbit-website-template/config/routes.rb +43 -0
  82. data/spec/expected/rails/the-hobbit-website-template/db/seeds.rb +7 -0
  83. data/spec/expected/rails/the-hobbit-website-template/doc/README_FOR_APP +2 -0
  84. data/spec/expected/rails/the-hobbit-website-template/public/404.html +30 -0
  85. data/spec/expected/rails/the-hobbit-website-template/public/422.html +30 -0
  86. data/spec/expected/rails/the-hobbit-website-template/public/500.html +30 -0
  87. data/spec/expected/rails/the-hobbit-website-template/public/favicon.ico +0 -0
  88. data/spec/expected/rails/the-hobbit-website-template/public/images/bg.jpg +0 -0
  89. data/spec/expected/rails/the-hobbit-website-template/public/images/bgcontainer.jpg +0 -0
  90. data/spec/expected/rails/the-hobbit-website-template/public/images/bgcontent.gif +0 -0
  91. data/spec/expected/rails/the-hobbit-website-template/public/images/bgfooter.gif +0 -0
  92. data/spec/expected/rails/the-hobbit-website-template/public/images/divider.gif +0 -0
  93. data/spec/expected/rails/the-hobbit-website-template/public/images/gfx.jpg +0 -0
  94. data/spec/expected/rails/the-hobbit-website-template/public/images/header.jpg +0 -0
  95. data/spec/expected/rails/the-hobbit-website-template/public/images/map.jpg +0 -0
  96. data/spec/expected/rails/the-hobbit-website-template/public/images/pattern.gif +0 -0
  97. data/spec/expected/rails/the-hobbit-website-template/public/images/quote.gif +0 -0
  98. data/spec/expected/rails/the-hobbit-website-template/public/images/rails.png +0 -0
  99. data/spec/expected/rails/the-hobbit-website-template/public/images/stripes.gif +0 -0
  100. data/spec/expected/rails/the-hobbit-website-template/public/index.html +275 -0
  101. data/spec/expected/rails/the-hobbit-website-template/public/javascripts/application.js +2 -0
  102. data/spec/expected/rails/the-hobbit-website-template/public/javascripts/controls.js +963 -0
  103. data/spec/expected/rails/the-hobbit-website-template/public/javascripts/dragdrop.js +973 -0
  104. data/spec/expected/rails/the-hobbit-website-template/public/javascripts/effects.js +1128 -0
  105. data/spec/expected/rails/the-hobbit-website-template/public/javascripts/prototype.js +4320 -0
  106. data/spec/expected/rails/the-hobbit-website-template/public/robots.txt +5 -0
  107. data/spec/expected/rails/the-hobbit-website-template/public/stylesheets/default.css +185 -0
  108. data/spec/expected/rails/the-hobbit-website-template/script/about +4 -0
  109. data/spec/expected/rails/the-hobbit-website-template/script/console +3 -0
  110. data/spec/expected/rails/the-hobbit-website-template/script/dbconsole +3 -0
  111. data/spec/expected/rails/the-hobbit-website-template/script/destroy +3 -0
  112. data/spec/expected/rails/the-hobbit-website-template/script/generate +3 -0
  113. data/spec/expected/rails/the-hobbit-website-template/script/performance/benchmarker +3 -0
  114. data/spec/expected/rails/the-hobbit-website-template/script/performance/profiler +3 -0
  115. data/spec/expected/rails/the-hobbit-website-template/script/plugin +3 -0
  116. data/spec/expected/rails/the-hobbit-website-template/script/runner +3 -0
  117. data/spec/expected/rails/the-hobbit-website-template/script/server +3 -0
  118. data/spec/expected/rails/the-hobbit-website-template/test/performance/browsing_test.rb +9 -0
  119. data/spec/expected/rails/the-hobbit-website-template/test/test_helper.rb +38 -0
  120. data/spec/fixtures/djclub/djclub.psd +0 -0
  121. data/spec/fixtures/djclub/images/bodybg.gif +0 -0
  122. data/spec/fixtures/djclub/images/contentbg.gif +0 -0
  123. data/spec/fixtures/djclub/images/djset.gif +0 -0
  124. data/spec/fixtures/djclub/images/footerbg.gif +0 -0
  125. data/spec/fixtures/djclub/images/header.jpg +0 -0
  126. data/spec/fixtures/djclub/images/leftbg.gif +0 -0
  127. data/spec/fixtures/djclub/images/middlebg.gif +0 -0
  128. data/spec/fixtures/djclub/images/navbottom.gif +0 -0
  129. data/spec/fixtures/djclub/images/navtop.gif +0 -0
  130. data/spec/fixtures/djclub/images/photos.jpg +0 -0
  131. data/spec/fixtures/djclub/images/rightbg.gif +0 -0
  132. data/spec/fixtures/djclub/images/timetoparty.jpg +0 -0
  133. data/spec/fixtures/djclub/index.html +54 -0
  134. data/spec/fixtures/djclub/style.css +191 -0
  135. data/spec/fixtures/the-hobbit-website-template/default.css +185 -0
  136. data/spec/fixtures/the-hobbit-website-template/img/bg.jpg +0 -0
  137. data/spec/fixtures/the-hobbit-website-template/img/bgcontainer.jpg +0 -0
  138. data/spec/fixtures/the-hobbit-website-template/img/bgcontent.gif +0 -0
  139. data/spec/fixtures/the-hobbit-website-template/img/bgfooter.gif +0 -0
  140. data/spec/fixtures/the-hobbit-website-template/img/divider.gif +0 -0
  141. data/spec/fixtures/the-hobbit-website-template/img/gfx.jpg +0 -0
  142. data/spec/fixtures/the-hobbit-website-template/img/header.jpg +0 -0
  143. data/spec/fixtures/the-hobbit-website-template/img/map.jpg +0 -0
  144. data/spec/fixtures/the-hobbit-website-template/img/pattern.gif +0 -0
  145. data/spec/fixtures/the-hobbit-website-template/img/quote.gif +0 -0
  146. data/spec/fixtures/the-hobbit-website-template/img/stripes.gif +0 -0
  147. data/spec/fixtures/the-hobbit-website-template/index.html +158 -0
  148. data/spec/fixtures/the-hobbit-website-template/license-readme.txt +53 -0
  149. data/spec/install_theme_haml_spec.rb +43 -0
  150. data/spec/install_theme_spec.rb +1 -1
  151. metadata +146 -1
@@ -0,0 +1,185 @@
1
+ /*
2
+ Template name: The Hobbit
3
+ Template URI: http://templates.arcsin.se/the-hobbit-website-template/
4
+ Release date: 2006-10-11
5
+ Description: Arcsin's submission for OWD template contest "Favourite Book".
6
+ Author: Viktor Persson
7
+ Author URI: http://arcsin.se/
8
+
9
+ This template is licensed under a Creative Commons Attribution 2.5 License:
10
+ http://templates.arcsin.se/license/
11
+ */
12
+
13
+ /* standard elements */
14
+ * {
15
+ margin: 0;
16
+ padding: 0;
17
+ }
18
+
19
+ a {color: #36C;}
20
+
21
+ a:hover {color: #06F;}
22
+
23
+ body {
24
+ background: #4E5D3C url(img/bg.jpg);
25
+ color: #444;
26
+ font: normal 62.5% "Lucida Sans Unicode",sans-serif;
27
+ margin: 0;
28
+ }
29
+
30
+ p,blockquote,ul {margin-bottom: 1.2em;}
31
+
32
+ h1 {font: normal 1.6em serif;}
33
+
34
+ h2 {
35
+ font: bold 1em Verdana,serif;
36
+ margin: 3px 0 1px;
37
+ }
38
+
39
+ ul {margin-left: 1.8em;}
40
+
41
+ blockquote {
42
+ background: url(img/quote.gif) no-repeat;
43
+ color: #555;
44
+ font: normal 1.4em serif;
45
+ padding-left: 22px;
46
+ }
47
+
48
+ blockquote p {padding: 6px;}
49
+
50
+ /* misc */
51
+ .clearer {
52
+ clear: both;
53
+ display: block;
54
+ font-size: 0;
55
+ line-height: 0;
56
+ height: 0;
57
+ }
58
+
59
+ .left {float: left;}
60
+ .right {float: right;}
61
+
62
+ img.left {margin: 0 18px 6px 0;}
63
+
64
+ .divider {
65
+ background: url(img/divider.gif) no-repeat;
66
+ height: 20px;
67
+ margin: 24px 0;
68
+ }
69
+
70
+ /* structure */
71
+ .container {
72
+ background: url(img/bgcontainer.jpg) repeat-y center top;
73
+ margin: 0 auto;
74
+ width: 736px;
75
+ }
76
+
77
+ .gfx {
78
+ background: url(img/gfx.jpg) no-repeat;
79
+ float: left;
80
+ height: 140px;
81
+ margin-top: 12px;
82
+ width: 52px;
83
+ }
84
+
85
+ .top {
86
+ background: url(img/bgcontent.gif) no-repeat 0 -4%;
87
+ float: left;
88
+ text-align: center;
89
+ width: 632px;
90
+ }
91
+
92
+ .header {
93
+ background: #56644A url(img/header.jpg) no-repeat;
94
+ color: #FFC;
95
+ font-size: 1.4em;
96
+ height: 232px;
97
+ padding-right: 270px;
98
+ }
99
+
100
+ .header h1 {
101
+ font: normal 3.2em serif,sans-serif;
102
+ padding: 62px 0 34px 0;
103
+ }
104
+
105
+ .pattern {
106
+ background: #334127 url(img/pattern.gif) repeat-x;
107
+ clear: both;
108
+ height: 12px;
109
+ }
110
+
111
+ /* navigation */
112
+ .navigation {margin: 0 24px;}
113
+
114
+ .navigation a {
115
+ color: #6C7151;
116
+ font: normal 1.9em serif;
117
+ line-height: 50px;
118
+ margin: 0 16px;
119
+ text-decoration: none;
120
+ }
121
+ .navigation a:hover,.navigation #selected {
122
+ color: #2C3111;
123
+ }
124
+
125
+ /* content */
126
+ .content {
127
+ background: url(img/bgcontent.gif) no-repeat;
128
+ clear: both;
129
+ font-size: 1.2em;
130
+ margin: 0 52px;
131
+ padding: 0 38px 12px;
132
+ }
133
+ .content .spacer {
134
+ height: 42px;
135
+ }
136
+
137
+ /* content item */
138
+ .item {clear: both;}
139
+
140
+ .item img {border: 1px dashed #8A6;}
141
+
142
+ .item .title {
143
+ color: #445044;
144
+ font: normal 2em serif;
145
+ }
146
+
147
+ .item .title:first-letter {
148
+ display: block;
149
+ float: left;
150
+ font-size: 2.4em;
151
+ }
152
+
153
+ .item .metadata {
154
+ color: #666;
155
+ font-size: 0.9em;
156
+ float: left;
157
+ padding: 0 0 6px 4px;
158
+ }
159
+
160
+ .item .body {
161
+ clear: both;
162
+ }
163
+
164
+ /* footer */
165
+ .footer {
166
+ background: url(img/bgfooter.gif) no-repeat;
167
+ color: #666;
168
+ font-size: 1.1em;
169
+ line-height: 41px;
170
+ margin: 0 auto;
171
+ text-align: center;
172
+ width: 632px;
173
+ }
174
+ .footer .left {padding-left: 40px;}
175
+ .footer .right {padding-right: 40px;}
176
+
177
+ .footer a {
178
+ color: #666;
179
+ text-decoration: none;
180
+ }
181
+ .footer a:hover,.footer .right a:hover {
182
+ color: #333;
183
+ text-decoration: underline;
184
+ }
185
+ .footer .right, .footer .right a {color: #ACAF9B;}
@@ -0,0 +1,158 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+
4
+ <head>
5
+ <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
6
+ <meta name="description" content="description"/>
7
+ <meta name="keywords" content="keywords"/>
8
+ <meta name="author" content="author"/>
9
+ <link rel="stylesheet" type="text/css" href="default.css"/>
10
+ <title>The Hobbit</title>
11
+ </head>
12
+
13
+ <body>
14
+
15
+ <div class="container">
16
+
17
+ <div class="gfx"><span></span></div>
18
+
19
+ <div class="top">
20
+
21
+ <div class="navigation">
22
+ <a href="index.html" id="selected">home</a>
23
+ <a href="index.html">the journey</a>
24
+ <a href="index.html">characters</a>
25
+ <a href="index.html">image gallery</a>
26
+ <a href="index.html">history</a>
27
+ </div>
28
+
29
+ <div class="pattern"><span></span></div>
30
+
31
+ <div class="header">
32
+ <h1>The Hobbit</h1>
33
+ <p>Adventures of Bilbo Baggins</p>
34
+ </div>
35
+
36
+ <div class="pattern"><span></span></div>
37
+
38
+ </div>
39
+
40
+ <div class="content">
41
+
42
+ <div class="spacer"></div>
43
+
44
+ <div class="item">
45
+
46
+ <div class="title">Porttitor posuere</div>
47
+ <div class="metadata">Jun 13, 2006 by Vulputate</div>
48
+
49
+ <div class="body">
50
+
51
+ <p>In hac habitasse platea dictumst. Duis porttitor. Sed vulputate elementum nisl. Vivamus et mi at arcu mattis iaculis. Nullam posuere tristique tortor. Aenean ornare, <a href="index.html">nunc eget pretium</a> porttitor, sem est pretium leo.</p>
52
+
53
+ <img class="left" src="img/map.jpg" width="180" height="152" alt="sample image"/>
54
+
55
+ <p>Aliquam risus justo, mollis in, laoreet a, consectetuer nec, risus. Nunc blandit sodales lacus. Nam luctus semper mi. In eu diam. Aliquam risus justo, mollis in, laoreet a, consectetuer nec, risus. Nunc blandit sodales lacus. Nam luctus semper mi. In eu diam. Aliquam risus justo, mollis in, laoreet a, consectetuer nec, risus. Nunc blandit sodales lacus. Nam luctus semper mi. In eu diam.</p>
56
+
57
+ <p>Fusce porta pede nec eros. Maecenas ipsum sem, interdum non, aliquam vitae, interdum nec, metus. Maecenas ornare lobortis risus. Etiam placerat varius mauris. Maecenas viverra. Sed feugiat. Donec mattis <a href="index.html">quam aliquam</a> risus. Nulla non felis sollicitudin urna blandit egestas. Integer et libero varius pede tristique ultricies. Cras nisl. Proin quis massa semper felis euismod ultricies.
58
+ </p>
59
+
60
+ </div>
61
+
62
+ </div>
63
+
64
+ <div class="divider"><span></span></div>
65
+
66
+ <div class="item">
67
+
68
+ <div class="title">Adipiscing</div>
69
+ <div class="metadata">Jun 11, 2006 by Laoreet</div>
70
+
71
+ <div class="body">
72
+
73
+ <p>Aliquam risus justo, mollis in, laoreet a, consectetuer nec, risus. Nunc blandit sodales lacus. Nam luctus semper mi.</p>
74
+
75
+ <h2>Justo Elit</h2>
76
+
77
+ <p>In hac habitasse platea dictumst. Duis porttitor. Sed vulputate elementum nisl. Vivamus et mi at arcu mattis iaculis. Nullam posuere tristique tortor. In bibendum. Aenean ornare, nunc eget pretium porttitor, sem est pretium leo</p>
78
+
79
+ <h2>Non Euismod Nulla</h2>
80
+
81
+ <p>Dui non diam. Pellentesque dictum faucibus leo. Vestibulum ac ante. Sed in est. Sed sodales nisl sit amet augue. Donec ultrices, augue ullamcorper posuere laoreet, turpis massa tristique justo, sed egestas metus magna sed purus. Fusce eleifend, dui ut posuere auctor, justo elit posuere sapien, at blandit enim quam fringilla mi.</p>
82
+ </div>
83
+
84
+ </div>
85
+
86
+ <div class="divider"><span></span></div>
87
+
88
+ <div class="item">
89
+
90
+ <div class="title">Donec dictum</div>
91
+ <div class="metadata">Jun 6, 2006 by Ultrices</div>
92
+
93
+ <div class="body">
94
+
95
+ <p>In hac habitasse platea dictumst. Duis porttitor. Sed vulputate elementum nisl. Vivamus et mi at arcu mattis iaculis. <a href="index.html">Nullam</a> posuere tristique tortor.</p>
96
+
97
+ <h1>Tristique</h1>
98
+
99
+ <p>In bibendum. Aenean ornare, nunc eget pretium porttitor, sem est pretium leo, non euismod nulla dui non diam. Pellentesque dictum faucibus leo. Vestibulum ac ante. Sed in est.</p>
100
+
101
+ <ul>
102
+ <li>Tristique</li>
103
+ <li>Aenean</li>
104
+ <li>Pretium</li>
105
+ </ul>
106
+
107
+ <p>Aliquam risus justo, mollis in, laoreet a, <a href="index.html">consectetuer nec</a> risus. Nunc blandit sodales lacus. Nam luctus semper mi. Sed sodales nisl sit amet augue. Donec ultrices, augue ullamcorper posuere laoreet, turpis massa tristique justo.</p>
108
+
109
+ </div>
110
+
111
+ </div>
112
+
113
+ <div class="divider"><span></span></div>
114
+
115
+ <div class="item">
116
+
117
+ <div class="title">Ultrices</div>
118
+ <div class="metadata">May 29, 2006 by Feugiat</div>
119
+
120
+ <div class="body">
121
+
122
+ <p>Integer porta. Fusce nibh. Curabitur pellentesque, lectus at <a href="index.html">volutpat interdum</a>. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque a nibh quis nunc volutpat aliquam</p>
123
+
124
+ <blockquote>
125
+ <p>A box without thines, key or lid, Yet a golden treasure inside is hid.</p>
126
+ </blockquote>
127
+
128
+ <p>Sem justo placerat elit, eget feugiat est leo tempor quam. Ut quis neque convallis magna consequat molestie. Nullam semper massa eget ligula. Fusce accumsan enim et arcu. Duis sagittis libero at lacus. Suspendisse lacinia nulla eget urna.</p>
129
+
130
+ <blockquote>
131
+ <p>Alive without breath, As cold as death; Never thirsty, ever drinking, All in mail never clinking.</p>
132
+ </blockquote>
133
+
134
+ <p>Eget feugiat est leo tempor quam. Ut quis neque convallis magna consequat molestie. Donec varius tincidunt nisi.</p>
135
+
136
+ </div>
137
+
138
+ </div>
139
+
140
+ </div>
141
+
142
+ <div class="footer">
143
+
144
+ <div class="left">
145
+ &copy; 2008 <a href="index.html">Website.com</a>. Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> &amp; <a href="http://validator.w3.org/check?uri=referer">XHTML</a>
146
+ </div>
147
+
148
+ <div class="right"><a href="http://templates.arcsin.se/">Website template</a> by <a href="http://arcsin.se/">Arcsin</a></div>
149
+
150
+ <div class="clearer">&nbsp;</div>
151
+
152
+ </div>
153
+
154
+ </div>
155
+
156
+ </body>
157
+
158
+ </html>
@@ -0,0 +1,53 @@
1
+ >> License Agreement (http://templates.arcsin.se/license/)
2
+ -------------------------------------------------
3
+ This template is licensed under a Creative Commons Attribution 2.5 License.
4
+ http://creativecommons.org/licenses/by/2.5/
5
+
6
+ You are free:
7
+
8
+ * to Share � to copy, distribute, display, and perform the work
9
+ * to Remix � to make derivative works
10
+
11
+ Under the following conditions:
12
+
13
+ * Attribution. You must attribute the work in the manner specified by the author or licensor.
14
+ * For any reuse or distribution, you must make clear to others the license terms of this work.
15
+ * Any of these conditions can be waived if you get permission from the copyright holder.
16
+
17
+ Attribution:
18
+
19
+ * Must include the provided credit links to my website in the footer.
20
+
21
+ This means that you are free to use and modify the templates & themes for any purpose as long as you include the provided credit links to my website in the footer.
22
+
23
+
24
+ >> Removing the link (Commercial & Personal use)
25
+ -------------------------------------------------
26
+ I have agreed to let users remove the link for a one time fee of $20 (US Dollars).
27
+
28
+ Payment can be done via:
29
+
30
+ * Moneybookers: moneybookers@arcsin.se
31
+ * PayPal: paypal@arcsin.se
32
+ * Credit card: Follow the instructions found at the template license page: http://templates.arcsin.se/license/
33
+
34
+ This gives you permission to remove the provided credit links on one template for one domain, for a corporate license (unlimited use on unlimited domains) please contact me.
35
+
36
+ Please include the website URL in the payment message so I can save it in my list of verified websites.
37
+
38
+
39
+ >> Note
40
+ -------------------------------------------------
41
+ Removing the credit links (not paid for) is the same as breaking the law and legal action can be taken against you.
42
+
43
+
44
+ >> Author
45
+ -------------------------------------------------
46
+ Author: Viktor Persson
47
+ Email: contact@arcsin.se
48
+ Website: http://arcsin.se/
49
+
50
+
51
+ >> More templates & themes
52
+ -------------------------------------------------
53
+ Arcsin Web Templates: http://templates.arcsin.se/
@@ -0,0 +1,43 @@
1
+ require File.dirname(__FILE__) + '/spec_helper.rb'
2
+
3
+ describe InstallTheme do
4
+ context "bloganje theme to haml" do
5
+ before do
6
+ setup_base_rails :haml => true
7
+ @stdout = stdout do |stdout|
8
+ @theme = InstallTheme.new(:template_root => File.dirname(__FILE__) + "/fixtures/bloganje",
9
+ :rails_root => @target_application,
10
+ :content_id => "content",
11
+ :inside_yields => { :header => '#header h2', :sidebar => '#sidebar' },
12
+ :stdout => stdout)
13
+ @theme.apply_to_target(:stdout => stdout, :generator => {:collision => :force, :quiet => true})
14
+ end
15
+ @expected_application = File.dirname(__FILE__) + "/expected/rails/bloganje"
16
+ end
17
+ describe "becomes a Rails app with html templates" do
18
+ it { @theme.should be_haml }
19
+ it { File.should be_exist(File.join(@expected_application, "app/views/layouts/application.html.haml")) }
20
+ it { File.should be_exist(File.join(@target_application, "app/views/layouts/application.html.haml")) }
21
+ it { File.should_not be_exist(File.join(@target_application, "app/views/layouts/application.html.erb")) }
22
+ it "should create app/views/layouts/application.html.erb as a layout file" do
23
+ expected = clean_html(File.join(@expected_application, "app/views/layouts/application.html.haml"))
24
+ actual = clean_html(File.join(@target_application, "app/views/layouts/application.html.haml"))
25
+ diff = `diff #{expected} #{actual} 2> /dev/null`
26
+ rputs diff unless diff.strip.empty?
27
+ diff.strip.should == ""
28
+ end
29
+
30
+ it { File.should be_exist(File.join(@target_application, "public/stylesheets/sass/style.sass")) }
31
+ it { File.should be_exist(File.join(@expected_application, "public/stylesheets/sass/style.sass")) }
32
+ it do
33
+ expected = File.join(@expected_application, "public/stylesheets/sass/style.sass")
34
+ actual = File.join(@target_application, "public/stylesheets/sass/style.sass")
35
+ diff = `diff #{expected} #{actual} 2> /dev/null`
36
+ rputs diff unless diff.strip.empty?
37
+ diff.strip.should == ""
38
+ end
39
+ it { @stdout.should include("- content_for :head do\n %script") }
40
+ it { @stdout.should include("- content_for :header do\n My eCommerce Admin area") }
41
+ end
42
+ end
43
+ end