Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
Removed htmlBody, added htmlBeforeScripts and htmlAfterScripts. Sorry…
Browse files Browse the repository at this point in the history
… for breaking the API.
  • Loading branch information
martoche committed Oct 22, 2010
1 parent 812cbaf commit 04c964b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/app.js
Expand Up @@ -22,8 +22,8 @@ self.App = function(options) {
this.minifyStylesheets = false;
this.htmlHead = null;
this.htmlStylesheets = null;
this.htmlBody = null;
this.htmlScripts = null;
this.htmlBeforeScripts = null;
this.htmlAfterScripts = null;
this.urlPrefix = '';
this.theme = 'sc-theme';
this.savePath = 'build';
Expand Down Expand Up @@ -125,12 +125,10 @@ App.prototype.rootContent = function(htmlStylesheets, htmlScripts) {
'<body class="' + that.theme + ' focus">'
);

if (that.htmlBody !== null) html.push(that.htmlBody);
if (that.htmlBeforeScripts !== null) html.push(that.htmlBeforeScripts);

html.push('<script type="text/javascript">String.preferredLanguage = "' + that.buildLanguage + '";</script>');

if (that.htmlScripts !== null) html.push(that.htmlScripts);

if (htmlScripts === undefined) {
that.frameworks.forEach(function(framework) {
framework.orderedScripts.forEach(function(script) {
Expand All @@ -140,6 +138,8 @@ App.prototype.rootContent = function(htmlStylesheets, htmlScripts) {
} else {
html.push(htmlScripts);
}

if (that.htmlAfterScripts !== null) html.push(that.htmlAfterScripts);

html.push(
'</body>',
Expand Down

0 comments on commit 04c964b

Please sign in to comment.