Sha256: 89e3806b34b10766069eba7640ef7bffff203ee6f9a4a6eb3980138d8e07cd2a
Contents?: true
Size: 1.27 KB
Versions: 3
Compression:
Stored size: 1.27 KB
Contents
# ### Here are some config samples to use rails_amp. # -------------------------------------------------- # To enable amp on specific controllers and actions. # -------------------------------------------------- # ### Enable amp on users all actions. # targets: # users: # # ### Enable amp on users#index, users#show, posts#index, posts#show. # ### controller: action1 action2 action3 ... # targets: # users: index show # posts: index show # # ### Enable amp on all controllers and actions. # targets: # application: all # # ### Disable amp completely. # targets: # targets: users: index show admin/users: index show # -------------------------------------------------- # To set initial configurations. # -------------------------------------------------- # ### Enable Google Analytics page tracking. Set your Google Analytics Account. # analytics: UA-*****-* # # ### Change default amp format. The default value is amp. # ### If you want to use 'mobile' as amp format, set 'mobile' to default_format. # ### And you can access the amp page like /users/index.mobile # default_format: mobile # # ### Set formats that used as amp. The default is html. # ### These formats are used in the order, when the amp specialized view like 'users/index.amp.erb' is not found. # lookup_formats: html xhtml
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_amp-0.2.2 | spec/dummy/config/rails_amp.yml |
rails_amp-0.2.1 | spec/dummy/config/rails_amp.yml |
rails_amp-0.2.0 | spec/dummy/config/rails_amp.yml |