Sha256: 819fec9c36d93dc4487398488fdd2f6f24636339e53aec105bada9d7a833cbc8
Contents?: true
Size: 942 Bytes
Versions: 16
Compression:
Stored size: 942 Bytes
Contents
Writefully.services_manifest = -> # fill in your manifest here # example: # if you want to trigger a service on your entire app # $('body').trigger 'application:services:service_name' # # If you want a more fine grained control for # different pages you can add a class to your body # in your views/layouts/application.html.erb # on your body tag you can do something like this # # <body class="[controller_name] [action_name]"> # # You now have a more fine grained control in # your manifest file # $('body.posts.show').trigger 'application:services:service_name' # # if you need to trigger the same services on multiple pages # $('body.posts.show, # body.dashboard.show, # body.photos.index').trigger 'application:services:service_name' # Writefully.run_ready = -> Writefully.services_manifest() $(document).ready Writefully.run_ready $(document).on 'page:load', Writefully.run_ready
Version data entries
16 entries across 16 versions & 1 rubygems