diff --git a/app/helpers/template.php b/app/helpers/template.php index 17fa31f..ed34a54 100644 --- a/app/helpers/template.php +++ b/app/helpers/template.php @@ -241,6 +241,8 @@ function createClient( $dom ){ } // render the global client vars + $client .= 'Object.extend(KISSCMS, '. json_encode_escaped( $GLOBALS['client'] ) .');'; + $client .= 'require.config( KISSCMS["require"] );'; $client = $this->trimWhitespace($client); // #87 not caching client vars as a file diff --git a/app/views/main/foot.php b/app/views/main/foot.php index 960601b..ad5a246 100644 --- a/app/views/main/foot.php +++ b/app/views/main/foot.php @@ -5,8 +5,7 @@