CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 07 Aug 2025 16:57:06 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20090917210242
location: https://web.archive.org/web/20090917210242/https://github.com/majic3/asset/tree
server-timing: captures_list;dur=0.972273, exclusion.robots;dur=0.020415, exclusion.robots.policy;dur=0.008957, esindex;dur=0.010887, cdx.remote;dur=590.996332, LoadShardBlock;dur=836.198332, PetaboxLoader3.resolve;dur=561.598834, PetaboxLoader3.datanode;dur=155.113231
x-app-server: wwwb-app220
x-ts: 302
x-tr: 1450
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app220; 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 200
server: nginx
date: Thu, 07 Aug 2025 16:57:07 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.6.35
x-archive-orig-date: Thu, 17 Sep 2009 21:02:42 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "94a24e9cbf3b60086ad82445eed0d1ef"
x-archive-orig-x-runtime: 1391ms
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-orig-content-length: 22482
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 17 Sep 2009 21:02:42 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 17 Sep 2009 21:02:42 GMT", ; rel="memento"; datetime="Thu, 17 Sep 2009 21:02:42 GMT", ; rel="last memento"; datetime="Thu, 17 Sep 2009 21:02:42 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_11_20090917204100_crawl100.gpg-c/52_11_20090917210220_crawl101.arc.gz
server-timing: captures_list;dur=0.662377, exclusion.robots;dur=0.026368, exclusion.robots.policy;dur=0.011571, esindex;dur=0.013428, cdx.remote;dur=51.348675, LoadShardBlock;dur=563.923802, PetaboxLoader3.datanode;dur=199.201062, PetaboxLoader3.resolve;dur=604.487780, load_resource;dur=284.798183
x-app-server: wwwb-app220
x-ts: 200
x-tr: 979
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
majic3's asset 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 (

Fork of mcurry/asset | |
Description: | CakePHP Plugin - Automatically combine and compress CSS and JS files. edit |
Homepage: | edit |
Public Clone URL: |
git://github.com/majic3/asset.git
Give this clone URL to anyone.
git clone git://github.com/majic3/asset.git
|
Your Clone URL: |
Use this clone URL yourself.
git clone git@github.com:majic3/asset.git
|

majic3 (author)
Sat Aug 22 18:00:58 -0700 2009
asset /
name | age | message | |
---|---|---|---|
![]() |
README | Loading commit data... ![]() |
|
![]() |
extras/ | ||
![]() |
tests/ | ||
![]() |
vendors/ | Fri May 08 18:57:06 -0700 2009 | more unit tests [unknown] |
![]() |
views/ |
README
/* * Asset Packer CakePHP Plugin * Copyright (c) 2009 Matt Curry * www.PseudoCoder.com * https://github.com/mcurry/asset * * @author Matt Curry <matt@pseudocoder.com> * @license MIT * */ /* about this fork */ Originally intended for use with my fork of the * suppport for additional css link attributes * support for ie conditionals and scripts * shell for killing cached output /* Notes */ * JavaScript packing only works with PHP5. If you're using PHP4 the scripts will still be merged into one file, but not packed. * A sample .htaccess file is included in the zip. Rename it and drop it in output dirs for improved performance. /* Instructions */ 1. You'll need a working version of CakePHP installed. This is running on 1.2.2.8120 stable. 2. Download jsmin 1.1.0 or later and put it in vendors/jsmin. 3. Download CSSTidy 1.3 or later and put the contents in vendors/csstidy. 4. Download the plugin to /app/plugins/asset. 5. Include the helper in any controller that will need it. Most likely you will put it in AppController so that it's available to all your controllers: var $helpers = array('Asset.asset'); 6. In your layout and views include Javascript files as you normally would when using the $scripts_for_layout approach: $javascript->link('jquery', false); 7. Similarly include your css with the inline option set to false: $html->css('style', null, null, false); 8. Then in your layout file, in the head section, instead of using $scripts_for_layout call the helper: echo $asset->scripts_for_layout(); /* Tips */ * By default the cached files are written to /app/webroot/cjs and /app/webroot/ccss. You can change that by setting: Configure::write('Asset.jsPath', 'some/path'); Configure::write('Asset.cssPath', 'some/path'); Don't include slashes at the beginning or end. Path will be relative to /app/webroot. So if set: Configure::write('Asset.jsPath', 'js/packed'); The path will be /app/webroot/js/packed * Remember to set the inline option to false for JS and CSS in your layout if you want them to be packed with the view scripts. * Setting DEBUG on will cause this helper to output the scripts the same way $scripts_for_layout would, effectifly turning it off while testing. * If you get a JavaScript error with a packed version of a file it's most likely missing a semi-colon somewhere. * Order is important. If you include script1 then script2 on one view and script2 then script1 on another, they will generate separate packed versions and will be treated by the browser as separate scripts.
This feature is coming soon. Sit tight!