forked from rquadling/grunt-html2js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rquadling#83 Add pug rendering capabilities and unit tests (major rel…
…ease package.json update reflects the addition). Alphabetized dependency list and added pugg as an optional dependency.
- Loading branch information
Benjamin Norwood
committed
Nov 9, 2016
1 parent
1add8fa
commit c094ad2
Showing
13 changed files
with
162 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
angular.module('templates-process_all_pug', ['../test/fixtures/process_pug.pug', '../test/fixtures/process_pug_custom.pug', '../test/fixtures/process_pug_with_include.pug', '../test/fixtures/pug_include.pug']); | ||
|
||
angular.module("../test/fixtures/process_pug.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/process_pug.pug", | ||
"<p class=\"example\">Hello World!</p><div id=\"greeting\">Nice</div><div id=\"watch\">test</div>"); | ||
}]); | ||
|
||
angular.module("../test/fixtures/process_pug_custom.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/process_pug_custom.pug", | ||
"<a href=\"href\">Great</a>"); | ||
}]); | ||
|
||
angular.module("../test/fixtures/process_pug_with_include.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/process_pug_with_include.pug", | ||
"<h1>I'm an include!</h1>"); | ||
}]); | ||
|
||
angular.module("../test/fixtures/pug_include.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/pug_include.pug", | ||
"<h1>I'm an include!</h1>"); | ||
}]); |
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,21 @@ | ||
angular.module('templates-process_all_pug', ['../test/fixtures/process_pug.pug', '../test/fixtures/process_pug_custom.pug', '../test/fixtures/process_pug_with_include.pug', '../test/fixtures/pug_include.pug']); | ||
|
||
angular.module("../test/fixtures/process_pug.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/process_pug.pug", | ||
"<p class=\"example\">Hello World!</p><div id=\"greeting\">Nice</div><div id=\"watch\">test</div>"); | ||
}]); | ||
|
||
angular.module("../test/fixtures/process_pug_custom.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/process_pug_custom.pug", | ||
"<a href=\"href\">Great</a>"); | ||
}]); | ||
|
||
angular.module("../test/fixtures/process_pug_with_include.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/process_pug_with_include.pug", | ||
"<h1>I'm an include!</h1>"); | ||
}]); | ||
|
||
angular.module("../test/fixtures/pug_include.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/pug_include.pug", | ||
"<h1>I'm an include!</h1>"); | ||
}]); |
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,7 @@ | ||
angular.module('templates-process_pug', ['../test/fixtures/process_pug.pug']); | ||
|
||
angular.module("../test/fixtures/process_pug.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/process_pug.pug", | ||
"<p class=\"example\">Hello World!</p>\n" + | ||
"<div id=\"greeting\">Nice</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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
angular.module('templates-process_pug_custom', ['../test/fixtures/process_pug_custom.pug']); | ||
|
||
angular.module("../test/fixtures/process_pug_custom.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/process_pug_custom.pug", | ||
"<a href>Great</a>"); | ||
}]); |
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,6 @@ | ||
angular.module('templates-process_pug_with_include', ['../test/fixtures/process_pug_with_include.pug']); | ||
|
||
angular.module("../test/fixtures/process_pug_with_include.pug", []).run(["$templateCache", function($templateCache) { | ||
$templateCache.put("../test/fixtures/process_pug_with_include.pug", | ||
"<h1>I'm an include!</h1>"); | ||
}]); |
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,2 @@ | ||
p.example Hello World! | ||
#greeting Nice |
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 @@ | ||
a(href) Great |
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 @@ | ||
include ./pug_include |
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 @@ | ||
h1 I'm an include! |
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