Logo: Relish

  1. Sign in

Project: Content-service

Usage

Scenarios
Using the ruby client
Given
a web application
class BasicApp < Sinatra::Base
  include IDP::Content
  use Rack::FiberPool
  content_service 'http://localhost:9393/assets'

  get '/' do
    haml :index
  end
end

run BasicApp
And
'views/index.haml' contains:
%html
  %head
    #{content.include(:global_css)}
  %body
    #{content.fragment("institutional_bar", "tony_starks_token")}
    #{content.include(:global_js)}
And
the app is running

Last published over 4 years ago by lashd.