app/controllers/lookbook/app_controller.rb in lookbook-0.4.8 vs app/controllers/lookbook/app_controller.rb in lookbook-0.5.0.beta.0
- old
+ new
@@ -25,10 +25,12 @@
def show
if @example
begin
set_params
@examples = examples_data
- @preview_srcdoc = render_examples(examples_data).gsub("\"", """)
+ @preview_srcdoc = if Lookbook.config.preview_srcdoc
+ render_examples(examples_data).gsub("\"", """)
+ end
@panels = panels.filter { |name, panel| panel[:show] }
rescue *EXCEPTIONS
render "error"
end
else