Skip to content

Instantly share code, notes, and snippets.

View rynop's full-sized avatar

Ryan Pendergast rynop

View GitHub Profile
@rynop
rynop / asset_patch.diff
Created December 10, 2010 15:30
patch for breaking up js,css,codeblock when debug > 0
86,89c86,104
< }
<
< if (Configure::read('debug') && $this->options['debug'] == false) {
< return join("\n\t", $this->View->__scripts);
---
> }
>
> //Allow breaking up of js,css,codeblock in your html when debug is > 0
> //Ex: putting 'css' in head and 'js','codeblock' at bottom before </body>
<p>I use Blah and blah</p>
<p><markdown>
### config.php: ###
#!javascript
function test()
{
return "aaa";
}