-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added nunjucks for template rendering
- Loading branch information
Jan Rembold
committed
Feb 14, 2016
1 parent
953e3cc
commit 5b3d84f
Showing
9 changed files
with
74 additions
and
25 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea | ||
node_modules | ||
node_modules | ||
test/pages |
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,9 @@ | ||
module.exports = { | ||
sayHi: function() { | ||
console.log('Hello from module.exports'); | ||
} | ||
}; | ||
|
||
casper.sayHiAgain = function() { | ||
this.echo('Hello from casper function'); | ||
}; |
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,18 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<title>Test Page</title> | ||
<meta charset="utf-8"> | ||
{% block styles %}{% endblock %} | ||
</head> | ||
<body> | ||
|
||
{% block content %}{% endblock %} | ||
|
||
{% block includes %}{% endblock %} | ||
<script> | ||
{% block scripts %}{% endblock %} | ||
</script> | ||
|
||
</body> | ||
</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 |
---|---|---|
@@ -0,0 +1 @@ | ||
<button>Change title</button> |
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,17 @@ | ||
{% extends "master.html" %} | ||
|
||
{% block content %} | ||
|
||
<h1>Test!</h1> | ||
{% include "accordion.default.nunjucks" %} | ||
|
||
{% endblock %} | ||
|
||
|
||
{% block scripts %} | ||
|
||
document.querySelector('button').addEventListener('click', function () { | ||
document.querySelector('h1').innerHTML = 'New title'; | ||
}); | ||
|
||
{% endblock %} |
This file was deleted.
Oops, something went wrong.