mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-12-15 16:59:03 +00:00
update
This commit is contained in:
12
node_modules/nunjucks/samples/express/views/about.html
generated
vendored
Normal file
12
node_modules/nunjucks/samples/express/views/about.html
generated
vendored
Normal 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
28
node_modules/nunjucks/samples/express/views/base.html
generated
vendored
Normal 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>
|
||||
1
node_modules/nunjucks/samples/express/views/import-context-set.html
generated
vendored
Normal file
1
node_modules/nunjucks/samples/express/views/import-context-set.html
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{% set bar = "FOO" %}
|
||||
7
node_modules/nunjucks/samples/express/views/index.html
generated
vendored
Normal file
7
node_modules/nunjucks/samples/express/views/index.html
generated
vendored
Normal 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 %}
|
||||
6
node_modules/nunjucks/samples/express/views/item-base.html
generated
vendored
Normal file
6
node_modules/nunjucks/samples/express/views/item-base.html
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
Editing item: {{ name }}
|
||||
|
||||
{% block description %}
|
||||
A basic description is: {{ desc }}
|
||||
{% endblock %}
|
||||
7
node_modules/nunjucks/samples/express/views/item.html
generated
vendored
Normal file
7
node_modules/nunjucks/samples/express/views/item.html
generated
vendored
Normal 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
1
node_modules/nunjucks/samples/express/views/set.html
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{% set username = "foooo" %}
|
||||
Reference in New Issue
Block a user