Created
February 19, 2009 22:12
-
-
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()
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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