Skip to content

Commit

Permalink
removing views by default
Browse files Browse the repository at this point in the history
  • Loading branch information
diervo committed Jul 19, 2012
1 parent d9ab0e4 commit ba33620
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/shaker.js
Expand Up @@ -106,8 +106,7 @@ ClientRollup.prototype = {
callback: function (blob) {
var filename = blob.name,
result = blob.result;

if (mime.lookup(filename) === 'text/html') {
if (mime.lookup(filename) === 'text/html' && options.bundleViews) {
//TODO: REFACTOR THIS!

var npm = filename.indexOf('node_modules') !== -1,
Expand All @@ -122,6 +121,8 @@ ClientRollup.prototype = {
result += '\tYUI.namespace("_mojito._cache.compiled.' + mojit + '.views");\n';
result += '\tYUI._mojito._cache.compiled.' + mojit + '.views.' + action + ' = ' + json + ';\n';
result += '});';
} else {
result = "";
}

return result;
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "mojito-shaker",
"version": "0.8.17",
"version": "0.8.18",
"description": "Compiles and deploys asset rollups for Mojito applications.",
"author": "shaker-users@yahoo-inc.com <shaker-users@yahoo-inc.com>",
"contributors": [
Expand Down

0 comments on commit ba33620

Please sign in to comment.