CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 15 Aug 2025 09:10:39 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090520184055
location: https://web.archive.org/web/20090520184055/https://github.com/kernow/javascript_auto_include/tree
server-timing: captures_list;dur=0.697423, exclusion.robots;dur=0.024771, exclusion.robots.policy;dur=0.011083, esindex;dur=0.018219, cdx.remote;dur=7.097261, LoadShardBlock;dur=107.318703, PetaboxLoader3.datanode;dur=51.601671
x-app-server: wwwb-app219
x-ts: 302
x-tr: 139
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app219; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Fri, 15 Aug 2025 09:10:39 GMT
content-type: text/html; charset=utf-8
content-length: 126
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Wed, 20 May 2009 18:40:52 GMT
x-archive-orig-connection: close
x-archive-orig-status: 301 Moved Permanently
location: https://web.archive.org/web/20090520184055/https://github.com/kernow/javascript_auto_include/tree/master
x-archive-orig-x-runtime: 123ms
x-archive-orig-cache-control: no-cache
x-archive-orig-content-length: 126
cache-control: max-age=1800
memento-datetime: Wed, 20 May 2009 18:40:55 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 24 Sep 2008 17:15:56 GMT", ; rel="prev memento"; datetime="Sun, 12 Oct 2008 11:53:50 GMT", ; rel="memento"; datetime="Wed, 20 May 2009 18:40:55 GMT", ; rel="next memento"; datetime="Sat, 29 Aug 2009 14:41:01 GMT", ; rel="last memento"; datetime="Sat, 29 Aug 2009 14:41:01 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_9_20090520182849_crawl100-c/52_9_20090520183827_crawl101.arc.gz
server-timing: captures_list;dur=0.514133, exclusion.robots;dur=0.017837, exclusion.robots.policy;dur=0.008879, esindex;dur=0.010444, cdx.remote;dur=13.933532, LoadShardBlock;dur=158.470590, PetaboxLoader3.datanode;dur=142.932763, PetaboxLoader3.resolve;dur=171.401195, load_resource;dur=237.173017
x-app-server: wwwb-app219
x-ts: 301
x-tr: 434
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 15 Aug 2025 09:10:40 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.26
x-archive-orig-date: Wed, 20 May 2009 18:40:53 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-x-runtime: 925ms
x-archive-orig-etag: "11acb18fea6675ffe107693ef4813de6"
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 20992
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Wed, 20 May 2009 18:40:55 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Wed, 24 Sep 2008 03:41:15 GMT", ; rel="prev memento"; datetime="Thu, 26 Feb 2009 02:31:11 GMT", ; rel="memento"; datetime="Wed, 20 May 2009 18:40:55 GMT", ; rel="next memento"; datetime="Sat, 29 Aug 2009 14:41:01 GMT", ; rel="last memento"; datetime="Mon, 06 Sep 2010 17:24:41 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_9_20090520182849_crawl100-c/52_9_20090520183827_crawl101.arc.gz
server-timing: captures_list;dur=0.623710, exclusion.robots;dur=0.023404, exclusion.robots.policy;dur=0.010747, esindex;dur=0.012828, cdx.remote;dur=72.725397, LoadShardBlock;dur=222.770683, PetaboxLoader3.datanode;dur=139.109883, PetaboxLoader3.resolve;dur=33.613088, load_resource;dur=21.524159
x-app-server: wwwb-app219
x-ts: 200
x-tr: 363
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
kernow's javascript_auto_include at master - GitHub
This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (

This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (

Description: | A Rails plugin to automatically include javascript files |
Homepage: | https://kernowsoul.com/page/javascript_auto_include |
Clone URL: |
git://github.com/kernow/javascript_auto_include.git
Give this clone URL to anyone.
git clone git://github.com/kernow/javascript_auto_include.git
|
name | age | message | |
---|---|---|---|
![]() |
README | Tue Dec 02 07:48:31 -0800 2008 | removed out of date svn link [kernow] |
![]() |
Rakefile | Loading commit data... ![]() |
|
![]() |
init.rb | ||
![]() |
install.rb | ||
![]() |
lib/ | Tue Dec 02 07:39:45 -0800 2008 | Merge branch 'master' of git://github.com/abrad... [kernow] |
![]() |
tasks/ | Fri Feb 15 03:09:05 -0800 2008 | put file back git-svn-id: https://kernowsoul.co... [jamied] |
![]() |
test/ | Fri Feb 15 02:30:15 -0800 2008 | git-svn-id: https://kernowsoul.com/svn/plugins/j... [jamied] |
![]() |
uninstall.rb |
JavascriptAutoInclude ===================== == Resources Install * On rails 2.1 and above run script/plugin install git://github.com/kernow/javascript_auto_include.git == Usage Add the following to the head of your template file <%= javascript_auto_include_tags %> Now each time the template is loaded javascript files in the public/javascripts/views folder that correspond to the name of the current controller or view will be auto loaded. It's also possible for the same javascript file to be loaded by multiple views by adding the name of each view to the filename separated by the "-" character, e.g. to load a javascript file in the new and edit views create a file named new-edit.js. Any number of views can be strung together using this naming convention. For example: /public /javascripts /views users.js /users edit.js roles.js /accounts show-new-edit-create.js show.js Assuming the above file structure loading each of the following urls would include: mydomain.com/users # includes users.js mydomain.com/users/edit/1 # includes users.js and edit.js mydomain.com/users/show/1 # includes users.js mydomain.com/roles # includes roles.js mydomain.com/accounts # no files included mydomain.com/accounts/show/1 # includes show.js and show-new-edit-create.js mydomain.com/accounts/new # includes show-new-edit-create.js mydomain.com/accounts/edit/1 # includes show-new-edit-create.js mydomain.com/accounts/create # includes show-new-edit-create.js == More https://kernowsoul.com/page/javascript_auto_include == Acknowledgements Thanks to geoffgarside https://github.com/geoffgarside for also creating a version that can include the same file in multiple views. Some of the code comments are from his version as they are more concise than mine.
This feature is coming soon. Sit tight!