decko-commons/decko

View on GitHub
mod/layout/set/right/head.rb

Summary

Maintainability
A
0 mins
Test Coverage
require "coderay"

def ok_to_read?
  true
end

format :html do
  view :head_content do
    process_content render_raw
  end

  view :one_line_content do
    raw_one_line_content
  end

  view :core do
    process_content ::CodeRay.scan(render_raw, :html).div
  end
end