Class: Proscenium::Middleware::Esbuild
- Defined in:
- lib/proscenium/middleware/esbuild.rb
Defined Under Namespace
Classes: CompileError
Instance Method Summary collapse
Methods inherited from Base
attempt, #initialize, #renderable!
Constructor Details
This class inherits a constructor from Proscenium::Middleware::Base
Instance Method Details
#attempt ⇒ Object
22 23 24 25 26 27 |
# File 'lib/proscenium/middleware/esbuild.rb', line 22 def attempt render_response Builder.build_to_string(path_to_build, root: Rails.root.to_s, base_url: @request.base_url) rescue Builder::CompileError => e raise self.class::CompileError, { file: @request.fullpath, detail: e. }, caller end |