Skip to content

Commit

Permalink
#88 tested creating a require object in the global namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tracend committed Jun 23, 2013
1 parent 07a2beb commit 7717e92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ function createClient( $dom ){
}
// render the global client vars
$client .= 'Object.extend(KISSCMS, '. json_encode_escaped( $GLOBALS['client'] ) .');';
//$client .= 'var require = KISSCMS["require"];';

$client = $this->trimWhitespace($client);
// #87 not caching client vars as a file
Expand Down

0 comments on commit 7717e92

Please sign in to comment.