Skip to content

Instantly share code, notes, and snippets.

@rodrigorm
Created February 19, 2009 22:12
Show Gist options
  • Save rodrigorm/67147 to your computer and use it in GitHub Desktop.
Save rodrigorm/67147 to your computer and use it in GitHub Desktop.
How to load a production app in javascriptmvc.com without using document.write()
<html>
<head></head>
<body>
<script language="javascript" type="text/javascript" src="../../jmvc/include.js"></script>
<script type="text/javascript" charset="utf-8">
first_wave_done = false;
MVC.apps_root = MVC.root.join('apps');
MVC.app_name = 'hello_world';
MVC.Options.load_production = false;
include.setup({
env: 'production',
production: MVC.apps_root + '/' + 'hello_world' + '/production'
});
</script>
<script language="javascript" type="text/javascript" src="production.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment