August 2016
Intermediate to advanced
376 pages
6h 33m
English
As we did before, let's change the views folder to the following new structure:
views
pages/ partials/jade files form views folder.layout.html inside the pages folder and place the following code: <!DOCTYPE html>
<html>
<head>
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>
index.html inside the views/pages folder and place the following code: {% extends 'layout.html' %}
{% block title %}{% endblock %}
{% block content %}
<h1>{{ title }}</h1>
Welcome to {{ title }}
{% endblock %}
error.html page inside the views/pages folder and place the following code: {% extends 'layout.html' %} {% block title %}{% endblock %} {% block content %} <div ...Read now
Unlock full access