easy_html_creator 1.0.0 → 1.1.0
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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile +3 -0
- data/LICENSE +1 -1
- data/README.md +20 -16
- data/bin/easy_html_creator +1 -0
- data/bin/ehc +5 -0
- data/dev_root/{test1 → demo-website}/coffee/test.coffee +0 -0
- data/dev_root/{test1 → demo-website}/helper/test_helper.rb +0 -0
- data/dev_root/{test1 → demo-website}/index.haml +4 -0
- data/dev_root/{test1 → demo-website}/layout.haml +0 -0
- data/dev_root/{test1 → demo-website}/partials/_assets.haml +0 -0
- data/dev_root/demo-website/partials/_footer.haml +1 -0
- data/dev_root/demo-website/partials/_header.haml +1 -0
- data/dev_root/{test1 → demo-website}/partials/_metadata.haml +1 -1
- data/dev_root/demo-website/public/images/easy-way.jpg +0 -0
- data/dev_root/{test1 → demo-website}/public/robots.txt +0 -0
- data/dev_root/{test1 → demo-website}/sass/main.sass +0 -0
- data/dev_root/documentation/dev_root.haml +41 -0
- data/dev_root/documentation/generate.haml +16 -0
- data/dev_root/documentation/index.haml +23 -0
- data/dev_root/documentation/layout.haml +11 -0
- data/dev_root/documentation/partials/_assets.haml +1 -0
- data/dev_root/documentation/partials/_header.haml +5 -0
- data/dev_root/documentation/partials/_metadata.haml +5 -0
- data/dev_root/documentation/public/doc/ActivesupportOverride.html +674 -0
- data/dev_root/documentation/public/doc/EhcCommandTasks.html +598 -0
- data/dev_root/documentation/public/doc/Generator.html +117 -0
- data/dev_root/documentation/public/doc/Generator/CoffeeGenerator.html +309 -0
- data/dev_root/documentation/public/doc/Generator/Context.html +437 -0
- data/dev_root/documentation/public/doc/Generator/Generator.html +552 -0
- data/dev_root/documentation/public/doc/Generator/HamlGenerator.html +406 -0
- data/dev_root/documentation/public/doc/Generator/SassGenerator.html +313 -0
- data/dev_root/documentation/public/doc/Generator/StructureGenerator.html +257 -0
- data/dev_root/documentation/public/doc/Server.html +165 -0
- data/dev_root/documentation/public/doc/Server/Dispatcher.html +377 -0
- data/dev_root/documentation/public/doc/Server/Request.html +730 -0
- data/dev_root/documentation/public/doc/Server/Response.html +642 -0
- data/dev_root/documentation/public/doc/Server/Server.html +356 -0
- data/dev_root/documentation/public/doc/_index.html +260 -0
- data/dev_root/documentation/public/doc/class_list.html +58 -0
- data/dev_root/documentation/public/doc/css/common.css +1 -0
- data/dev_root/documentation/public/doc/css/full_list.css +57 -0
- data/dev_root/documentation/public/doc/css/style.css +339 -0
- data/dev_root/documentation/public/doc/file.CHANGELOG.html +98 -0
- data/dev_root/documentation/public/doc/file.LICENSE.html +95 -0
- data/dev_root/documentation/public/doc/file.README.html +130 -0
- data/dev_root/documentation/public/doc/file_list.html +66 -0
- data/dev_root/documentation/public/doc/frames.html +26 -0
- data/dev_root/documentation/public/doc/index.html +130 -0
- data/dev_root/documentation/public/doc/js/app.js +219 -0
- data/dev_root/documentation/public/doc/js/full_list.js +181 -0
- data/dev_root/documentation/public/doc/js/jquery.js +4 -0
- data/dev_root/documentation/public/doc/method_list.html +429 -0
- data/dev_root/documentation/public/doc/top-level-namespace.html +114 -0
- data/dev_root/documentation/sass/main.sass +38 -0
- data/dev_root/documentation/server.haml +8 -0
- data/dev_root/documentation/yard.haml +1 -0
- data/lib/easy_html_creator.rb +4 -1
- data/lib/ehc_command_tasks.rb +112 -0
- data/lib/generator/generator.rb +2 -2
- data/lib/generator/haml_generator.rb +3 -0
- data/{dev_root/shared → lib/generator}/helper/activesupport_override.rb +6 -0
- data/lib/generator/structure_generator.rb +0 -2
- data/lib/server/dispatcher.rb +5 -2
- data/lib/server/request.rb +2 -1
- data/lib/server/server.rb +2 -2
- metadata +94 -96
- data/bin/generateFiles +0 -5
- data/bin/initDevRoot +0 -21
- data/bin/startServer +0 -3
- data/dev_root/test1/partials/_footer.haml +0 -1
- data/dev_root/test1/partials/_header.haml +0 -1
- data/dev_root/test2/coffee/test.coffee +0 -28
- data/dev_root/test2/index.haml +0 -4
- data/dev_root/test2/layout.haml +0 -7
- data/dev_root/test2/partials/title.haml +0 -1
- data/dev_root/test2/sass/test.sass +0 -3
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3f45c58862417dd1c43f8ae529b31d1ceef3ce91
|
4
|
+
data.tar.gz: 87d98a01e6a72de6544fd00680e2099f7af4a706
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3058697de9373737b374fb8a0135a716f9800864208320dbca71872283fde4d8e2ce7ab3561058c7c3a92e7b9c67df10534061378c342f258190baad1dfc01dd
|
7
|
+
data.tar.gz: 6cc31c106f9a0f6649f87e58e6b97eee9272f5eceebaa67c578e9b2e91d37d12770bdd0860fbe5d209b6bb2cd25e2902af8dfe077f088e9445412fcfa54fcb8e
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
1.1.0
|
2
|
+
=================
|
3
|
+
- Add easy commands to start the server (`ehc server`) and to parse the dev_root (`ehc generate`)
|
4
|
+
- Add the ActiveSupport gem with overrides to fix Rails dependicies
|
5
|
+
- Make the demo website better
|
6
|
+
- Add a documentation website t the dev_root (it's also hosted here: http://easyhtmlcreator.bplaced.net/)
|
7
|
+
|
8
|
+
1.0.0
|
9
|
+
=================
|
10
|
+
We released our project as a gem (https://rubygems.org/gems/easy_html_creator)
|
11
|
+
|
1
12
|
0.1.2
|
2
13
|
=================
|
3
14
|
Project helper and add actionview for hml files
|
data/Gemfile
CHANGED
data/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2014, Tom
|
3
|
+
Copyright (c) 2014, Tom Hanoldt and Dennis van de Hoef
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
@@ -1,38 +1,40 @@
|
|
1
|
-
|
1
|
+
easy_html_creator
|
2
2
|
=================
|
3
|
-
|
3
|
+
easy_html_creator is a gem that makes developing static HTML websites easy and joyful.
|
4
4
|
|
5
5
|
Once you learned the joy of haml or sass, it get boring to program in "plain old" html and css.
|
6
6
|
|
7
7
|
Using our Gem you could generate and maintain multiple static websites and program them in your preferred languages.
|
8
8
|
|
9
9
|
Currently supported by our fast and lightweight re-generation server:
|
10
|
-
HAML
|
11
|
-
Sass (with bootstarp)
|
12
|
-
CoffeeScript
|
10
|
+
* HAML
|
11
|
+
* Sass (with bootstarp)
|
12
|
+
* CoffeeScript
|
13
13
|
|
14
14
|
We also included the "actionview" gem, to enable the use of rails standard functions like "text_field_tag".
|
15
15
|
|
16
|
+
Extended doumentation, can be found here: http://easyhtmlcreator.bplaced.net
|
17
|
+
|
16
18
|
Installation
|
17
19
|
=======
|
18
20
|
Add folliwing to your Gemfile
|
19
21
|
|
20
|
-
`gem '
|
22
|
+
`gem 'easy_html_creator'`
|
21
23
|
|
22
|
-
than
|
24
|
+
than run
|
23
25
|
|
24
26
|
`bundle install`
|
25
27
|
|
26
28
|
Usage
|
27
29
|
=======
|
28
30
|
|
29
|
-
`
|
31
|
+
`ehc init`
|
30
32
|
This command will generate a sample dev_root and web_root folder
|
31
33
|
|
32
|
-
`
|
34
|
+
`ehc generate`
|
33
35
|
This command will generate all the files
|
34
36
|
|
35
|
-
`
|
37
|
+
`ehc server [--ip-adres 127.0.0.1] [--port 5678]`
|
36
38
|
This command will start a webserver with will automatically regenerate all the files
|
37
39
|
|
38
40
|
|
@@ -41,11 +43,13 @@ TODO
|
|
41
43
|
- clean/refactor code
|
42
44
|
- Add tests
|
43
45
|
|
44
|
-
|
45
|
-
|
46
|
+
Stats
|
47
|
+
========
|
46
48
|
|
47
|
-
|
48
|
-
https://github.com/scarpenter/command_line_haml/blob/master/generate.rb
|
49
|
+
[](http://badge.fury.io/rb/easy_html_creator)
|
49
50
|
|
50
|
-
|
51
|
-
|
51
|
+
Credits
|
52
|
+
=======
|
53
|
+
*Files are located in the first commit and/or version 0.0.1*
|
54
|
+
- ./ruby_files/generate.rb is based on: https://github.com/scarpenter/command_line_haml/blob/master/generate.rb
|
55
|
+
- ./ruby_files/server.rb is based on: https://practicingruby.com/articles/implementing-an-http-file-server
|
@@ -0,0 +1 @@
|
|
1
|
+
./ehc
|
data/bin/ehc
ADDED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
footer(.haml)
|
@@ -0,0 +1 @@
|
|
1
|
+
header(.haml)
|
Binary file
|
File without changes
|
File without changes
|
@@ -0,0 +1,41 @@
|
|
1
|
+
%h1
|
2
|
+
dev_root tips & tricks
|
3
|
+
|
4
|
+
%h2
|
5
|
+
The 'public' directory
|
6
|
+
|
7
|
+
%p
|
8
|
+
If you whant to add plain JavaScript or SS files, or just whants to add a directory with images, this is the place to be.
|
9
|
+
|
10
|
+
%p
|
11
|
+
Every project has its own 'public' directory.
|
12
|
+
%br
|
13
|
+
When EHC parses the project, it will copy all the content from thuis directory to the root of your project in the web_root.
|
14
|
+
|
15
|
+
%h2
|
16
|
+
Use bootrstap mixins in SASS
|
17
|
+
|
18
|
+
%p
|
19
|
+
Wenn you use SASS, we automatticly load the bootstrap mixins.
|
20
|
+
%br
|
21
|
+
This happens on the background, when parsing your code.
|
22
|
+
Therefore you can directy use code as 'make-row()' in your SASS-file.
|
23
|
+
|
24
|
+
%h2
|
25
|
+
Ruby-helpers
|
26
|
+
|
27
|
+
%p
|
28
|
+
It might be whished to create a Helper in Ruby to make the genration of some defaults easy.
|
29
|
+
%br
|
30
|
+
Before parsing your HAML-files (or at startup from the server) EHC can dynamicly load your Helpers.
|
31
|
+
|
32
|
+
%p
|
33
|
+
EHC searches in 2 directories for helper-files '/dev_root/shared/helpers/' (for helpers you whant to use in multiple projects) and in '/dev_root/[project]/helper/'.
|
34
|
+
|
35
|
+
%h2
|
36
|
+
Active Support
|
37
|
+
|
38
|
+
%p
|
39
|
+
There is no need to create helpers with Active Support functionality.
|
40
|
+
%br
|
41
|
+
EHC has Active Support already included, with some overrides to make it work without Rails.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
%h1
|
2
|
+
Generate web_root
|
3
|
+
|
4
|
+
%p
|
5
|
+
There are two ways to generate plain HTML/CSS/JavaScript code from your dev_root.
|
6
|
+
|
7
|
+
%p
|
8
|
+
The first way is to type 'ehc generate' (or 'ehc g' for short) from your commandline.
|
9
|
+
%br
|
10
|
+
This wil automaticly parse all the dev_root projects.
|
11
|
+
|
12
|
+
%p
|
13
|
+
The second avalible methode is the one tought four developing your website.
|
14
|
+
%br
|
15
|
+
Using the build in
|
16
|
+
=link_to 'webserver', 'server.html'
|
@@ -0,0 +1,23 @@
|
|
1
|
+
%h1
|
2
|
+
This website contains the "extra" documentation for Easy HTML Creator.
|
3
|
+
|
4
|
+
%p
|
5
|
+
The basics can be found in the Readme.md file, wich is also avalible in the yard-documentation (see the above menu).
|
6
|
+
|
7
|
+
%p
|
8
|
+
Easy HTML creator is a Ruby Gem that maks it easy to genarate plain HTML
|
9
|
+
websites.
|
10
|
+
%p
|
11
|
+
The website can be programmed using HAML, Coffee and SASS if wished.
|
12
|
+
%br
|
13
|
+
If SASS is used, it wil automatically include Bootstrap to your code.
|
14
|
+
|
15
|
+
%h2
|
16
|
+
Where can I find it?
|
17
|
+
|
18
|
+
%ul
|
19
|
+
%li=link_to 'Github.com', 'https://github.com/dennisvandehoef/easy-html-creator', {target: '_BLANK'}
|
20
|
+
%li=link_to 'Rubygems.org', 'https://rubygems.org/gems/easy_html_creator', {target: '_BLANK'}
|
21
|
+
%li=link_to 'Blog: Dennis van de Hoef', 'http://hoefweb.nl/ruby/easy-html-creator', {target: '_BLANK'}
|
22
|
+
%li=link_to 'Blog: Tom Hanoldt', 'http://www.tomhanoldt.info/web/code/ruby/easy-html-creator', {target: '_BLANK'}
|
23
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
= stylesheet_link_tag 'main.css'
|
@@ -0,0 +1,674 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Module: ActivesupportOverride
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!ActivesupportOverride.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index (A)</a> »
|
35
|
+
|
36
|
+
|
37
|
+
<span class="title">ActivesupportOverride</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Module: ActivesupportOverride
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
<dt class="r1">Included in:</dt>
|
81
|
+
<dd class="r1"><span class='object_link'><a href="Generator/Context.html" title="Generator::Context (class)">Generator::Context</a></span></dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">lib/generator/helper/activesupport_override.rb</dd>
|
87
|
+
|
88
|
+
</dl>
|
89
|
+
<div class="clear"></div>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<h2>
|
100
|
+
Instance Method Summary
|
101
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
102
|
+
</h2>
|
103
|
+
|
104
|
+
<ul class="summary">
|
105
|
+
|
106
|
+
<li class="public ">
|
107
|
+
<span class="summary_signature">
|
108
|
+
|
109
|
+
<a href="#external_path%3F-instance_method" title="#external_path? (instance method)">- (Boolean) <strong>external_path?</strong>(path) </a>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
</span>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
124
|
+
|
125
|
+
</li>
|
126
|
+
|
127
|
+
|
128
|
+
<li class="public ">
|
129
|
+
<span class="summary_signature">
|
130
|
+
|
131
|
+
<a href="#javascript_include_tag-instance_method" title="#javascript_include_tag (instance method)">- (Object) <strong>javascript_include_tag</strong>(path) </a>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
</span>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
146
|
+
|
147
|
+
</li>
|
148
|
+
|
149
|
+
|
150
|
+
<li class="public ">
|
151
|
+
<span class="summary_signature">
|
152
|
+
|
153
|
+
<a href="#link_tag-instance_method" title="#link_tag (instance method)">- (Object) <strong>link_tag</strong>(source, relation, type) </a>
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
</span>
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
168
|
+
|
169
|
+
</li>
|
170
|
+
|
171
|
+
|
172
|
+
<li class="public ">
|
173
|
+
<span class="summary_signature">
|
174
|
+
|
175
|
+
<a href="#meta_tag-instance_method" title="#meta_tag (instance method)">- (Object) <strong>meta_tag</strong>(type, content) </a>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
</span>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
<li class="public ">
|
195
|
+
<span class="summary_signature">
|
196
|
+
|
197
|
+
<a href="#meta_tag_http-instance_method" title="#meta_tag_http (instance method)">- (Object) <strong>meta_tag_http</strong>(type, content) </a>
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
</span>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
212
|
+
|
213
|
+
</li>
|
214
|
+
|
215
|
+
|
216
|
+
<li class="public ">
|
217
|
+
<span class="summary_signature">
|
218
|
+
|
219
|
+
<a href="#path_to_css-instance_method" title="#path_to_css (instance method)">- (Object) <strong>path_to_css</strong>(path) </a>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
</span>
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
234
|
+
|
235
|
+
</li>
|
236
|
+
|
237
|
+
|
238
|
+
<li class="public ">
|
239
|
+
<span class="summary_signature">
|
240
|
+
|
241
|
+
<a href="#path_to_image-instance_method" title="#path_to_image (instance method)">- (Object) <strong>path_to_image</strong>(path) </a>
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
</span>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
256
|
+
|
257
|
+
</li>
|
258
|
+
|
259
|
+
|
260
|
+
<li class="public ">
|
261
|
+
<span class="summary_signature">
|
262
|
+
|
263
|
+
<a href="#path_to_js-instance_method" title="#path_to_js (instance method)">- (Object) <strong>path_to_js</strong>(path) </a>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
</span>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
278
|
+
|
279
|
+
</li>
|
280
|
+
|
281
|
+
|
282
|
+
<li class="public ">
|
283
|
+
<span class="summary_signature">
|
284
|
+
|
285
|
+
<a href="#stylesheet_link_tag-instance_method" title="#stylesheet_link_tag (instance method)">- (Object) <strong>stylesheet_link_tag</strong>(path, media = 'screen') </a>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
</span>
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
300
|
+
|
301
|
+
</li>
|
302
|
+
|
303
|
+
|
304
|
+
<li class="public ">
|
305
|
+
<span class="summary_signature">
|
306
|
+
|
307
|
+
<a href="#url_for-instance_method" title="#url_for (instance method)">- (Object) <strong>url_for</strong>(options = '') </a>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
</span>
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
322
|
+
|
323
|
+
</li>
|
324
|
+
|
325
|
+
|
326
|
+
</ul>
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
<div id="instance_method_details" class="method_details_list">
|
332
|
+
<h2>Instance Method Details</h2>
|
333
|
+
|
334
|
+
|
335
|
+
<div class="method_details first">
|
336
|
+
<h3 class="signature first" id="external_path?-instance_method">
|
337
|
+
|
338
|
+
- (<tt>Boolean</tt>) <strong>external_path?</strong>(path)
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
</h3><div class="docstring">
|
345
|
+
<div class="discussion">
|
346
|
+
|
347
|
+
|
348
|
+
</div>
|
349
|
+
</div>
|
350
|
+
<div class="tags">
|
351
|
+
|
352
|
+
<p class="tag_title">Returns:</p>
|
353
|
+
<ul class="return">
|
354
|
+
|
355
|
+
<li>
|
356
|
+
|
357
|
+
|
358
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
</li>
|
363
|
+
|
364
|
+
</ul>
|
365
|
+
|
366
|
+
</div><table class="source_code">
|
367
|
+
<tr>
|
368
|
+
<td>
|
369
|
+
<pre class="lines">
|
370
|
+
|
371
|
+
|
372
|
+
39
|
373
|
+
40
|
374
|
+
41</pre>
|
375
|
+
</td>
|
376
|
+
<td>
|
377
|
+
<pre class="code"><span class="info file"># File 'lib/generator/helper/activesupport_override.rb', line 39</span>
|
378
|
+
|
379
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_external_path?'>external_path?</span> <span class='id identifier rubyid_path'>path</span>
|
380
|
+
<span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_start_with?'>start_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>//</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_path'>path</span><span class='period'>.</span><span class='id identifier rubyid_start_with?'>start_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>http</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
381
|
+
<span class='kw'>end</span></pre>
|
382
|
+
</td>
|
383
|
+
</tr>
|
384
|
+
</table>
|
385
|
+
</div>
|
386
|
+
|
387
|
+
<div class="method_details ">
|
388
|
+
<h3 class="signature " id="javascript_include_tag-instance_method">
|
389
|
+
|
390
|
+
- (<tt>Object</tt>) <strong>javascript_include_tag</strong>(path)
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
</h3><table class="source_code">
|
397
|
+
<tr>
|
398
|
+
<td>
|
399
|
+
<pre class="lines">
|
400
|
+
|
401
|
+
|
402
|
+
8
|
403
|
+
9
|
404
|
+
10</pre>
|
405
|
+
</td>
|
406
|
+
<td>
|
407
|
+
<pre class="code"><span class="info file"># File 'lib/generator/helper/activesupport_override.rb', line 8</span>
|
408
|
+
|
409
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_javascript_include_tag'>javascript_include_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
410
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'><script src="</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_path_to_js'>path_to_js</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>"></script></span><span class='tstring_end'>'</span></span>
|
411
|
+
<span class='kw'>end</span></pre>
|
412
|
+
</td>
|
413
|
+
</tr>
|
414
|
+
</table>
|
415
|
+
</div>
|
416
|
+
|
417
|
+
<div class="method_details ">
|
418
|
+
<h3 class="signature " id="link_tag-instance_method">
|
419
|
+
|
420
|
+
- (<tt>Object</tt>) <strong>link_tag</strong>(source, relation, type)
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
</h3><table class="source_code">
|
427
|
+
<tr>
|
428
|
+
<td>
|
429
|
+
<pre class="lines">
|
430
|
+
|
431
|
+
|
432
|
+
20
|
433
|
+
21
|
434
|
+
22</pre>
|
435
|
+
</td>
|
436
|
+
<td>
|
437
|
+
<pre class="code"><span class="info file"># File 'lib/generator/helper/activesupport_override.rb', line 20</span>
|
438
|
+
|
439
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_link_tag'>link_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='comma'>,</span> <span class='id identifier rubyid_relation'>relation</span><span class='comma'>,</span> <span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
|
440
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'><link rel="</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_relation'>relation</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>" href="</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_source'>source</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>" type="</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_type'>type</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>" /></span><span class='tstring_end'>'</span></span>
|
441
|
+
<span class='kw'>end</span></pre>
|
442
|
+
</td>
|
443
|
+
</tr>
|
444
|
+
</table>
|
445
|
+
</div>
|
446
|
+
|
447
|
+
<div class="method_details ">
|
448
|
+
<h3 class="signature " id="meta_tag-instance_method">
|
449
|
+
|
450
|
+
- (<tt>Object</tt>) <strong>meta_tag</strong>(type, content)
|
451
|
+
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
</h3><table class="source_code">
|
457
|
+
<tr>
|
458
|
+
<td>
|
459
|
+
<pre class="lines">
|
460
|
+
|
461
|
+
|
462
|
+
12
|
463
|
+
13
|
464
|
+
14</pre>
|
465
|
+
</td>
|
466
|
+
<td>
|
467
|
+
<pre class="code"><span class="info file"># File 'lib/generator/helper/activesupport_override.rb', line 12</span>
|
468
|
+
|
469
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_meta_tag'>meta_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_content'>content</span><span class='rparen'>)</span>
|
470
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'><meta name="</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_type'>type</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>" content="</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_content'>content</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>" /></span><span class='tstring_end'>'</span></span>
|
471
|
+
<span class='kw'>end</span></pre>
|
472
|
+
</td>
|
473
|
+
</tr>
|
474
|
+
</table>
|
475
|
+
</div>
|
476
|
+
|
477
|
+
<div class="method_details ">
|
478
|
+
<h3 class="signature " id="meta_tag_http-instance_method">
|
479
|
+
|
480
|
+
- (<tt>Object</tt>) <strong>meta_tag_http</strong>(type, content)
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
|
486
|
+
</h3><table class="source_code">
|
487
|
+
<tr>
|
488
|
+
<td>
|
489
|
+
<pre class="lines">
|
490
|
+
|
491
|
+
|
492
|
+
16
|
493
|
+
17
|
494
|
+
18</pre>
|
495
|
+
</td>
|
496
|
+
<td>
|
497
|
+
<pre class="code"><span class="info file"># File 'lib/generator/helper/activesupport_override.rb', line 16</span>
|
498
|
+
|
499
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_meta_tag_http'>meta_tag_http</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_content'>content</span><span class='rparen'>)</span>
|
500
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'><meta http-equiv="</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_type'>type</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>" content="</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_content'>content</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>" /></span><span class='tstring_end'>'</span></span>
|
501
|
+
<span class='kw'>end</span></pre>
|
502
|
+
</td>
|
503
|
+
</tr>
|
504
|
+
</table>
|
505
|
+
</div>
|
506
|
+
|
507
|
+
<div class="method_details ">
|
508
|
+
<h3 class="signature " id="path_to_css-instance_method">
|
509
|
+
|
510
|
+
- (<tt>Object</tt>) <strong>path_to_css</strong>(path)
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
|
516
|
+
</h3><table class="source_code">
|
517
|
+
<tr>
|
518
|
+
<td>
|
519
|
+
<pre class="lines">
|
520
|
+
|
521
|
+
|
522
|
+
24
|
523
|
+
25
|
524
|
+
26
|
525
|
+
27</pre>
|
526
|
+
</td>
|
527
|
+
<td>
|
528
|
+
<pre class="code"><span class="info file"># File 'lib/generator/helper/activesupport_override.rb', line 24</span>
|
529
|
+
|
530
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_path_to_css'>path_to_css</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
531
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_path'>path</span> <span class='kw'>if</span> <span class='id identifier rubyid_external_path?'>external_path?</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
532
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>css/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
533
|
+
<span class='kw'>end</span></pre>
|
534
|
+
</td>
|
535
|
+
</tr>
|
536
|
+
</table>
|
537
|
+
</div>
|
538
|
+
|
539
|
+
<div class="method_details ">
|
540
|
+
<h3 class="signature " id="path_to_image-instance_method">
|
541
|
+
|
542
|
+
- (<tt>Object</tt>) <strong>path_to_image</strong>(path)
|
543
|
+
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
</h3><table class="source_code">
|
549
|
+
<tr>
|
550
|
+
<td>
|
551
|
+
<pre class="lines">
|
552
|
+
|
553
|
+
|
554
|
+
34
|
555
|
+
35
|
556
|
+
36
|
557
|
+
37</pre>
|
558
|
+
</td>
|
559
|
+
<td>
|
560
|
+
<pre class="code"><span class="info file"># File 'lib/generator/helper/activesupport_override.rb', line 34</span>
|
561
|
+
|
562
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_path_to_image'>path_to_image</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
563
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_path'>path</span> <span class='kw'>if</span> <span class='id identifier rubyid_external_path?'>external_path?</span> <span class='id identifier rubyid_path'>path</span>
|
564
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>images/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
565
|
+
<span class='kw'>end</span></pre>
|
566
|
+
</td>
|
567
|
+
</tr>
|
568
|
+
</table>
|
569
|
+
</div>
|
570
|
+
|
571
|
+
<div class="method_details ">
|
572
|
+
<h3 class="signature " id="path_to_js-instance_method">
|
573
|
+
|
574
|
+
- (<tt>Object</tt>) <strong>path_to_js</strong>(path)
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
|
580
|
+
</h3><table class="source_code">
|
581
|
+
<tr>
|
582
|
+
<td>
|
583
|
+
<pre class="lines">
|
584
|
+
|
585
|
+
|
586
|
+
29
|
587
|
+
30
|
588
|
+
31
|
589
|
+
32</pre>
|
590
|
+
</td>
|
591
|
+
<td>
|
592
|
+
<pre class="code"><span class="info file"># File 'lib/generator/helper/activesupport_override.rb', line 29</span>
|
593
|
+
|
594
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_path_to_js'>path_to_js</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span>
|
595
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_path'>path</span> <span class='kw'>if</span> <span class='id identifier rubyid_external_path?'>external_path?</span> <span class='id identifier rubyid_path'>path</span>
|
596
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>js/</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_path'>path</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
597
|
+
<span class='kw'>end</span></pre>
|
598
|
+
</td>
|
599
|
+
</tr>
|
600
|
+
</table>
|
601
|
+
</div>
|
602
|
+
|
603
|
+
<div class="method_details ">
|
604
|
+
<h3 class="signature " id="stylesheet_link_tag-instance_method">
|
605
|
+
|
606
|
+
- (<tt>Object</tt>) <strong>stylesheet_link_tag</strong>(path, media = 'screen')
|
607
|
+
|
608
|
+
|
609
|
+
|
610
|
+
|
611
|
+
|
612
|
+
</h3><table class="source_code">
|
613
|
+
<tr>
|
614
|
+
<td>
|
615
|
+
<pre class="lines">
|
616
|
+
|
617
|
+
|
618
|
+
4
|
619
|
+
5
|
620
|
+
6</pre>
|
621
|
+
</td>
|
622
|
+
<td>
|
623
|
+
<pre class="code"><span class="info file"># File 'lib/generator/helper/activesupport_override.rb', line 4</span>
|
624
|
+
|
625
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_stylesheet_link_tag'>stylesheet_link_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='comma'>,</span> <span class='id identifier rubyid_media'>media</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>screen</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
626
|
+
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'><link href="</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_path_to_css'>path_to_css</span><span class='lparen'>(</span><span class='id identifier rubyid_path'>path</span><span class='rparen'>)</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>" media="</span><span class='tstring_end'>'</span></span><span class='op'>+</span><span class='id identifier rubyid_media'>media</span><span class='op'>+</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>" rel="stylesheet" type="text/css" /></span><span class='tstring_end'>'</span></span>
|
627
|
+
<span class='kw'>end</span></pre>
|
628
|
+
</td>
|
629
|
+
</tr>
|
630
|
+
</table>
|
631
|
+
</div>
|
632
|
+
|
633
|
+
<div class="method_details ">
|
634
|
+
<h3 class="signature " id="url_for-instance_method">
|
635
|
+
|
636
|
+
- (<tt>Object</tt>) <strong>url_for</strong>(options = '')
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
|
642
|
+
</h3><table class="source_code">
|
643
|
+
<tr>
|
644
|
+
<td>
|
645
|
+
<pre class="lines">
|
646
|
+
|
647
|
+
|
648
|
+
43
|
649
|
+
44
|
650
|
+
45</pre>
|
651
|
+
</td>
|
652
|
+
<td>
|
653
|
+
<pre class="code"><span class="info file"># File 'lib/generator/helper/activesupport_override.rb', line 43</span>
|
654
|
+
|
655
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_url_for'>url_for</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
656
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_options'>options</span>
|
657
|
+
<span class='kw'>end</span></pre>
|
658
|
+
</td>
|
659
|
+
</tr>
|
660
|
+
</table>
|
661
|
+
</div>
|
662
|
+
|
663
|
+
</div>
|
664
|
+
|
665
|
+
</div>
|
666
|
+
|
667
|
+
<div id="footer">
|
668
|
+
Generated on Sun Dec 21 19:55:50 2014 by
|
669
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
670
|
+
0.8.7.6 (ruby-2.1.3).
|
671
|
+
</div>
|
672
|
+
|
673
|
+
</body>
|
674
|
+
</html>
|