wbzyl-sinatra-static-assets 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/examples/app2/views/layout.erb +2 -1
- data/lib/sinatra/static_assets.rb +6 -1
- data/sinatra-static-assets.gemspec +1 -1
- metadata +1 -1
data/VERSION.yml
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
5
5
|
|
6
|
-
|
6
|
+
<%= stylesheet_link_tag "/stylesheets/app2.css" %>
|
7
|
+
|
7
8
|
<script src="/javascripts/app2.js" type="text/javascript"></script>
|
8
9
|
|
9
10
|
<title><%= @title %></title>
|
@@ -6,6 +6,11 @@ require 'sinatra/url_for'
|
|
6
6
|
|
7
7
|
module Sinatra
|
8
8
|
module StaticAssets
|
9
|
+
#
|
10
|
+
# TODO
|
11
|
+
#
|
12
|
+
# option: html -> closed == false
|
13
|
+
# option: xhtml -> closed == true
|
9
14
|
|
10
15
|
# In HTML the <img> tag has no end tag:
|
11
16
|
#
|
@@ -60,7 +65,7 @@ module Sinatra
|
|
60
65
|
end
|
61
66
|
|
62
67
|
def javascript_tag(source, options)
|
63
|
-
# append onto tag </script>
|
68
|
+
# append onto tag "</script>"
|
64
69
|
end
|
65
70
|
|
66
71
|
def extract_options(a)
|