Class: Muwu::RenderHtml
- Inherits:
-
Object
show all
- Includes:
- Muwu
- Defined in:
- lib/muwu/render_html/render_html.rb
Constant Summary
Constants included
from Muwu
GEM_HOME_LIB, GEM_HOME_LIB_MUWU, VERSION
Instance Method Summary
collapse
Methods included from Muwu
debug, read
Constructor Details
#initialize(project) ⇒ RenderHtml
Returns a new instance of RenderHtml.
11
12
13
14
15
|
# File 'lib/muwu/render_html/render_html.rb', line 11
def initialize(project)
@manifest = project.manifest
@project = project
halt_if_project_has_fatal_exceptions
end
|
Instance Method Details
#render_all ⇒ Object
22
23
24
25
26
27
28
|
# File 'lib/muwu/render_html/render_html.rb', line 22
def render_all
if @manifest.does_have_documents
build_and_render(@manifest.documents)
else
reply_nothing_to_do
end
end
|
#render_css_only ⇒ Object
31
32
33
34
35
36
37
|
# File 'lib/muwu/render_html/render_html.rb', line 31
def render_css_only
if @manifest.does_have_documents_css
build_and_render(@manifest.documents_css)
else
reply_nothing_to_do
end
end
|
#render_html_by_index(index) ⇒ Object
40
41
42
43
44
45
46
47
|
# File 'lib/muwu/render_html/render_html.rb', line 40
def render_html_by_index(index)
document_html = @manifest.find_document_html_by_index(index)
if document_html
build_and_render(document_html)
else
reply_nothing_to_do
end
end
|
#render_html_only ⇒ Object
50
51
52
53
54
55
56
|
# File 'lib/muwu/render_html/render_html.rb', line 50
def render_html_only
if @manifest.does_have_documents_html
build_and_render(@manifest.documents_html)
else
reply_nothing_to_do
end
end
|
#render_js_only ⇒ Object
59
60
61
62
63
64
65
|
# File 'lib/muwu/render_html/render_html.rb', line 59
def render_js_only
if @manifest.does_have_documents_js
build_and_render(@manifest.documents_js)
else
reply_nothing_to_do
end
end
|