Skip to content

ActivePath makes your frontend more extensible and easier to debug

Notifications You must be signed in to change notification settings

active-path/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActivePath

ActivePath provides an interface for rendering your partials.

View Injection:

https://github.com/active-path/view-injection

Path Hints:

https://github.com/active-path/path-hints

Product Roadmap (TODO)

  • User docs
  • Specs and CI build

Custom Installation

Add to your Gemfile:

gem 'active_path'

Add the initializer config/initializers/active_path.rb and enable ActivePath:

ActivePath.configure do |config|

  config.enabled = true

end

Now create a subscriber where you will have access to context, buffer, options, locals and subscribe to the render_partial event:

require 'active_path/subscribers/subscriber'
class Subscriber < ActivePath::Subscribers::Subscriber
  def perform
    ...
  end
end
ActiveSupport::Notifications.subscribe(:render_partial, Subscriber.new)

--

Feel free to submit issues or help make it better.

About

ActivePath makes your frontend more extensible and easier to debug

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages