Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
48 additions
and
93 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,7 +145,6 @@ module.exports = function(grunt) { | |
} | ||
}, | ||
|
||
|
||
// Unit tests. | ||
nodeunit: { | ||
tests: ['test/*_test.js'] | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
define(['pug'], function(pug) { if(pug && pug['runtime'] !== undefined) { pug = pug.runtime; } | ||
|
||
return function template(locals) { | ||
var buf = []; | ||
var pug_mixins = {}; | ||
var pug_interp; | ||
;var locals_for_with = (locals || {});(function (test) { | ||
buf.push("<div id=\"test\" class=\"test\"><span id=\"data\">data</span>"); | ||
if ( test) | ||
{ | ||
buf.push("<div>testing</div>"); | ||
} | ||
buf.push("</div>");}.call(this,"test" in locals_for_with?locals_for_with.test:typeof test!=="undefined"?test:undefined));;return buf.join(""); | ||
return function template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;;var locals_for_with = (locals || {});(function (test) {pug_html = pug_html + "\u003Cdiv class=\"test\" id=\"test\"\u003E\u003Cspan id=\"data\"\u003Edata\u003C\u002Fspan\u003E"; | ||
if (test) { | ||
pug_html = pug_html + "\u003Cdiv\u003Etesting\u003C\u002Fdiv\u003E"; | ||
} | ||
pug_html = pug_html + "\u003C\u002Fdiv\u003E";}.call(this,"test" in locals_for_with?locals_for_with.test:typeof test!=="undefined"?test:undefined));;return pug_html;} | ||
|
||
}); | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
define(['pug'], function(pug) { if(pug && pug['runtime'] !== undefined) { pug = pug.runtime; } | ||
|
||
return function template(locals) { | ||
var buf = []; | ||
var pug_mixins = {}; | ||
var pug_interp; | ||
;var locals_for_with = (locals || {});(function (test) { | ||
buf.push("<div id=\"test\" class=\"test\"><span id=\"data\">data</span>"); | ||
if ( test) | ||
{ | ||
buf.push("<div>testing 2</div>"); | ||
} | ||
buf.push("</div>");}.call(this,"test" in locals_for_with?locals_for_with.test:typeof test!=="undefined"?test:undefined));;return buf.join(""); | ||
return function template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;;var locals_for_with = (locals || {});(function (test) {pug_html = pug_html + "\u003Cdiv class=\"test\" id=\"test\"\u003E\u003Cspan id=\"data\"\u003Edata\u003C\u002Fspan\u003E"; | ||
if (test) { | ||
pug_html = pug_html + "\u003Cdiv\u003Etesting 2\u003C\u002Fdiv\u003E"; | ||
} | ||
pug_html = pug_html + "\u003C\u002Fdiv\u003E";}.call(this,"test" in locals_for_with?locals_for_with.test:typeof test!=="undefined"?test:undefined));;return pug_html;} | ||
|
||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
define(['pug'], function(pug) { if(pug && pug['runtime'] !== undefined) { pug = pug.runtime; } | ||
|
||
return function template(locals) { | ||
var buf = []; | ||
var pug_mixins = {}; | ||
var pug_interp; | ||
|
||
buf.push("<html><head><title>TEST</title></head><body></body></html>"); | ||
return function pug_escape(e){var a=""+e,t=pug_match_html.exec(a);if(!t)return e;var r,c,n,s="";for(r=t.index,c=0;r<a.length;r++){switch(a.charCodeAt(r)){case 34:n=""";break;case 38:n="&";break;case 60:n="<";break;case 62:n=">";break;default:continue}c!==r&&(s+=a.substring(c,r)),c=r+1,s+=n}return c!==r?s+a.substring(c,r):s} | ||
var pug_match_html=/["&<>]/;function template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;pug_html = pug_html + "\u003Chtml\u003E\u003Chead\u003E\u003Ctitle\u003ETEST\u003C\u002Ftitle\u003E\u003C\u002Fhead\u003E\u003Cbody\u003E\u003C\u002Fbody\u003E\u003C\u002Fhtml\u003E"; | ||
var a = 'hello pug test' | ||
buf.push("<p>" + (pug.escape(null == (pug_interp = a) ? "" : pug_interp)) + "</p>");;return buf.join(""); | ||
} | ||
pug_html = pug_html + "\u003Cp\u003E" + (pug_escape(null == (pug_interp = a) ? "" : pug_interp)) + "\u003C\u002Fp\u003E";;return pug_html;} | ||
|
||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
this["JST"] = this["JST"] || {}; | ||
|
||
this["JST"]["pug"] = function template(locals) { | ||
var buf = []; | ||
var pug_mixins = {}; | ||
var pug_interp; | ||
;var locals_for_with = (locals || {});(function (test) { | ||
buf.push("<div id=\"test\" class=\"test\"><span id=\"data\">data</span>"); | ||
if ( test) | ||
{ | ||
buf.push("<div>testing</div>"); | ||
this["JST"]["pug"] = function template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;;var locals_for_with = (locals || {});(function (test) {pug_html = pug_html + "\u003Cdiv class=\"test\" id=\"test\"\u003E\u003Cspan id=\"data\"\u003Edata\u003C\u002Fspan\u003E"; | ||
if (test) { | ||
pug_html = pug_html + "\u003Cdiv\u003Etesting\u003C\u002Fdiv\u003E"; | ||
} | ||
buf.push("</div>");}.call(this,"test" in locals_for_with?locals_for_with.test:typeof test!=="undefined"?test:undefined));;return buf.join(""); | ||
}; | ||
pug_html = pug_html + "\u003C\u002Fdiv\u003E";}.call(this,"test" in locals_for_with?locals_for_with.test:typeof test!=="undefined"?test:undefined));;return pug_html;}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
this["JST"] = this["JST"] || {}; | ||
|
||
this["JST"]["pug2"] = function template(locals) { | ||
var buf = []; | ||
var pug_mixins = {}; | ||
var pug_interp; | ||
;var locals_for_with = (locals || {});(function (test) { | ||
buf.push("<div id=\"test\" class=\"test\"><span id=\"data\">data</span>"); | ||
if ( test) | ||
{ | ||
buf.push("<div>testing 2</div>"); | ||
this["JST"]["pug2"] = function template(locals) {var pug_html = "", pug_mixins = {}, pug_interp;;var locals_for_with = (locals || {});(function (test) {pug_html = pug_html + "\u003Cdiv class=\"test\" id=\"test\"\u003E\u003Cspan id=\"data\"\u003Edata\u003C\u002Fspan\u003E"; | ||
if (test) { | ||
pug_html = pug_html + "\u003Cdiv\u003Etesting 2\u003C\u002Fdiv\u003E"; | ||
} | ||
buf.push("</div>");}.call(this,"test" in locals_for_with?locals_for_with.test:typeof test!=="undefined"?test:undefined));;return buf.join(""); | ||
}; | ||
pug_html = pug_html + "\u003C\u002Fdiv\u003E";}.call(this,"test" in locals_for_with?locals_for_with.test:typeof test!=="undefined"?test:undefined));;return pug_html;}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div id="test" class="test"><span id="data">data</span><div>testing</div></div> | ||
<div class="test" id="test"><span id="data">data</span><div>testing</div></div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<div id="test" class="test"><span id="data">data</span><div>testing 2</div></div> | ||
<div class="test" id="test"><span id="data">data</span><div>testing 2</div></div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
include mixins | ||
include mixins.pug | ||
+themixin |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var helpers = module.exports = {}; | ||
|
||
var grunt = require('grunt'); | ||
|
||
helpers.read = function(src) { | ||
var result = grunt.util.normalizelf(grunt.file.read(src)); | ||
if (result.slice(-1) === '\n') { | ||
result = result.slice(0, -1); | ||
} | ||
return result; | ||
}; |
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
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
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