class Muwu::RenderHtmlPartial::DocumentJs

Attributes

destination[RW]
libraries[RW]
project[RW]

Public Instance Methods

options() click to toggle source
# File lib/muwu/render_html_partial/render_document_js.rb, line 25
def options
  @project.options
end
render() click to toggle source
# File lib/muwu/render_html_partial/render_document_js.rb, line 16
def render
  @destination.output_stream do
    libraries.each do |library|
      write_library(library)
    end
  end
end
write_library(library) click to toggle source
# File lib/muwu/render_html_partial/render_document_js.rb, line 30
def write_library(library)
  @destination.write_inline RenderHtmlPartial::JsLibrary.new.find(library)
end