This commit is contained in:
tatianamac
2019-11-26 14:50:43 -08:00
parent 8a55660ed0
commit 6d5445ecc5
13894 changed files with 2233957 additions and 0 deletions

12
node_modules/nunjucks/samples/express/views/about.html generated vendored Normal file
View File

@@ -0,0 +1,12 @@
{% extends "base.html" %}
{% block content %}
This is just the about page
{% endblock %}
{% block footer %}
{{ super() }}
You really should read this!
{{ poop }}
{% endblock %}

28
node_modules/nunjucks/samples/express/views/base.html generated vendored Normal file
View File

@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>A quick app</title>
<style>
body {
background-color: #ccffcc;
}
.footer {
margin-top: 5em;
font-size: .75em;
}
</style>
<script src="/js/nunjucks.js"></script>
<script src="/js/templates.js"></script>
<script src="/js/app.js"></script>
</head>
<body>
{% block content %}{% endblock %}
<div class="footer">
{% block footer %}(c) James Long 2012{% endblock %}
</div>
</body>
</html>

View File

@@ -0,0 +1 @@
{% set bar = "FOO" %}

View File

@@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
Hello, {{ username | default('poop') | safe }}! This is just some content.
<div id="dynamic"></div>
{% endblock %}

View File

@@ -0,0 +1,6 @@
Editing item: {{ name }}
{% block description %}
A basic description is: {{ desc }}
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "item-base.html" %}
{% block description %}
I told you, it's name is {{ name }}.
It also has the description: {{ desc }}.
{% endblock %}

1
node_modules/nunjucks/samples/express/views/set.html generated vendored Normal file
View File

@@ -0,0 +1 @@
{% set username = "foooo" %}